10
Setting Toggle Values (Min/Max) for Buttons or the Sustain Pedal
It is possible to set a Toggle Value for a button or the sustain pedal, causing it to send one value when first pressed
and another value when pressed again. This means that one value is sent the first time it is pressed, and another
value is sent the next time it is pressed. When configuring a button or the sustain pedal to operate in Toggle Mode,
the following four values need to be specified:
Key
Parameter
Value
Control Assign
Toggle On/Off operation
146
Data 1 (example)
MIDI CC number
10 (Pan)
Data 2 (example)
Second press
0 (minimum)
Data 3 (example)
First press
127 (maximum)
Note:
When working with proprietary M-Audio parameters from the 128-255 range, the Control Assign setting is used
to configure a button or the sustain pedal for this special mode of operation. This means that certain values that are
usually specified through the Control Assign setting must instead be specified via the "Data 1" parameter (such as the
standard MIDI CC parameter in the example below).
The following example will configure a button to "hard pan" the sound to the right speaker when it is pressed for the
first time, and "hard pan" to the left speaker when it is pressed for the second time. This involves configuring the
button to operate as a toggle, while controlling the Pan parameter (MIDI CC 10):
1.
Press the Edit button.
2.
Press the Select button or Control Select (Ctrl Sel) key.
3.
Select a button as described earlier in this guide.
4.
Press the Control Assign (Ctrl Asgn) key.
5.
Type 146 using the number keys. This configures the button to operate as a toggle.
6.
Press the Data 1 key.
7.
Type 10 using the number keys. This specifies which parameter the button will toggle “on and off”. In this
example, MIDI CC 10 (Pan).
8.
Press the Data 2 key.
9.
Type 0 using the number keys. This sets the second button press value to zero. In other words, sound will be
panned "hard left" when the button is pressed a second time.
10.
Press the Data 3 key.
11.
Type 127 using the number keys. This sets the first button press value to the maximum value, so that the sound
is panned “hard right” when the button is pressed the first time.
12.
Press the Enter key.
TIP:
It can be useful to transmit two other specific values instead of sending minimum (zero) and maximum (127)
values as in the above example. When assigning a button to control Pan (MIDI CC 10), you can, for example,
configure Data 2 to send value 38, and Data 3 to send value 93, effectively causing pan to switch between the
approximate "ten o’clock" and "two o’clock" positions when pressing the button the first time, and pressing the button
the second time.