Programmable MIDI Controller Foot-Switch

The programmable MIDI controller foot-switch utilizes:

  •  a stereo jack-socket, which also acts as the on/off switch, and associated power-on LED,
  •  a 4-way DIP switch which selects the MIDI channel at power-on, see Table 3
  •  a MIDI 5-pin DIN output socket, see Circuit Diagram
  •  a programme switch, a 4-way DIP switch (shown in Table 1) which selects the MIDI programme at power-on, and associated LED,

The programmable MIDI controller foot-switch requires:

 

Programming the unit:

At power-on, if the programme switch is simultaneously held on, then the unit will enter programme mode. The DIP switch positions are read and the unit will operate as shown in Table 1.

The switch position is stored internally in the EEPROM and will continue to operate in this mode, even if power is removed, until reprogrammed.

Normal Mode:

At power-on the DIP switch positions are read and the unit will operate in a MIDI channel as shown in Table 3. Also the EEPROM is read and the unit operates in the previously programmed pedal mode.

Note that at power-on, if the programme switch is ignored then the unit operates as previously programmed.

 

DIP Switch Selections

MIDI Pedal Functions
4 3 2 1
on on on on Sustain
on on on off Sostenuto
on  on  off on Soft Pedal
on on off off Legato
on off on on Hold 2
on off on off Start
on off off on Start/Stop
on off off off Start/Continue/Stop
off on on on Portamento Time 0
off on on off Portamento Time 1
off on  off on Portamento Time 2
off on off off Portamento Time 3
off off on on Portamento Time 4
off off on off Portamento Time 5
off off off on Portamento Time 6
off off off off Portamento Time 7

Table 1

 

MIDI Pedal Functions:

Sustain Pedal: 

The sustain pedal is also known as the Damper Pedal. When operated it sends out a controller value of CC64. When the pedal is pressed ON the unit outputs a value of 127, when released OFF the unit outputs a value of 0. Tone-generators without the 'half-damper' implemented will interpret a value between 0 and 63 as OFF and a value of 64 to 127 as ON. 

Sostenuto Pedal: 

The sostenuto pedal is a type of selective sustain pedal found on acoustic grand-pianos. Pressing down the pedal, sending controller value CC66 with a value of 127, while holding notes on the keyboard will cause these notes to be sustained after you release them. Any notes played after pressing the pedal will not sustain. When the pedal is released it sends out controller value CC66 with a value of 0.

Soft Pedal:

The soft pedal works in two simultaneous ways. When the pedal is pressed, sending out controller value CC67 with a value of 127, the sound should be slightly softened in terms of volume and there should be a noticeable difference in the tone-colour of the sound. When the pedal is released it sends out controller value CC67 with a value of 0.

Legato Pedal:

When the legato pedal is pressed, sending out controller value CC68 with a value of 127, playing a different note changes the pitch of the current note without re-triggering the attack phase of the envelope of the sound. When the pedal is released it sends out controller value CC68 with a value of 0.

Hold 2 Pedal:

The hold 2 pedal is another type of sustaining pedal used fro sounds with two sustain phases in their envelopes. When the pedal is pressed it sends out controller value CC69 with a value of 127, when the pedal is released it sends out controller value CC69 with a value of 0.

Start Pedal:

The start pedal sends a MIDI start code when the foot-switch is pressed. This can be used to control the start time of a MIDI hardware/software sequencer, allowing a musician hands free operation.

Start/Stop Pedal:

When Start/Stop  pedal is operated it sends a MIDI start code when the foot-switch is pressed for the first time and then a MIDI stop code when pressed a second time. Then the Start, Stop sequence is repeated with each alternate pressing of the foot-pedal switch. This can be used to control the start/stop time of a MIDI hardware/software sequencer, allowing a musician hands free operation.

Start/Continue/Stop Pedal:

When Start/Continue/Stop  pedal is operated it sends a MIDI start code when the foot-switch is pressed for the first time and then a MIDI continue code when pressed a second time and then a MIDI stop code when pressed for the third time. Then the Start, Continue,Stop sequence is repeated with each alternate pressing of the foot-pedal switch. This can be used to control the start/continue/stop time of a MIDI hardware/software sequencer, allowing a musician hands free operation.

Portamento Pedal (Time 0-7):

Portamento or glide is a synthesiser effect. It is mainly used for synthesiser leads and sound effects. The effect is a regular sliding from one note to another, in a similar way to pitch bend, but in this case it is the time taken  rather than the distance that has to be specified.

Portamento uses two separate controllers. Controller CC5 is used to set the portamento Time, how long it takes to change the pitch by a semitone, which has a range of 0-127. Table 2 shows the portamento time values associated with portamento time values of 0-7.

Portmento Time Values Controller CC5 Value
Portamento Time 0 1
Portamento Time 1 2
Portamento Time 2 4
Portamento Time 3 8
Portamento Time 4 16
Portamento Time 5 32
Portamento Time 6 64
Portamento Time 7 127

Table 2 Portamento Times

When the portamento pedal is pressed it sends out controller value CC65 with a value of 127. When the pedal is released it sends out controller value CC65 with a value of 0.

The portamento effect does not require the playing to be legato, the pitch will always slide from the last note played, however long you pause between the two.

If chords are played with the portameno effect then the sliding becomes haphazard as any note from the first chord could slide to any note of the second.

 

DIP Switch Selections

MIDI Channels
4 3 2 1
on on on on 1
on on on off 2
on  on  off on 3
on on off off 4
on off on on 5
on off on off 6
on off off on 7
on off off off 8
off on on on 9
off on on off 10
off on  off on 11
off on off off 12
off off on on 13
off off on off 14
off off off on 15
off off off off 16

Table 3 MIDI Channels

 

 

 

 

 

 


TOM SCARFF
1 Martello Court
Portmarnock
Dublin
Ireland.


Email: tscarff@eircom.net