MIDI Devices
Table Of Contents
26
MIDI devices
Using normal values (Example)
Sometimes, values higher than one byte are necessary to
address something, e.g. sample numbers (Sample NR)
from 0–255 (0000 xxxx to 0000 yyyy in binary).
In this case, the value x effectively consists of two bytes,
called XX and YY here:
F0 23 12 6B PT Fn XX YY F7
These two bytes need to be set up so that they result in
one value. For this, you have to change the settings for the
Normal Value. Proceed as follows:
1. Define a new SysEx message for “Sample NR” with a
length of 9.
This leaves us with initially 7 definable values.
2. Remove all values from the list except Value 7. (Byte 6
will be set up as a kind of swap byte to 7). Rename Value
7 to “Sample NR”.
Let’s take a look at the settings “Number of Bits” and “Bits
per Byte” for byte 7.
The default is 7 “Number of Bits” to 7 “Bits per Byte”.
This results in:
• 0/7 for byte 7 and a binary display of 0xxx xxxx
When you change the “Number of Bits” to 8, you have a
superfluous bit which cannot be put into this byte. There-
fore, it is “swapped” to the byte in front of it.
This results in:
• 1/7 and a binary display of 0000 000x for byte 6
• 0/7 and a binary display of 0xxx xxxx for byte 7
In our example, we need the setting 0000 xxxx for both
byte 6 and 7. Therefore, the correct settings are 8 for
“Number of Bits” and 4 for “Bits per Byte”.
This results in:
• 1/4 for byte 6 and a binary display of 0000 xxxx
• 0/4 for byte 7 and a binary display of 0000 xxxx
Since we set up the bytes in the correct sequence of
XX YY, the resulting sequence of values is also correct,
with byte 6 for the higher numbers XX and byte 7 for the
lower numbers on the right. (If you wanted to change this
sequence, you would have to change the Byte Positions
values.)
When you return to the Add Parameters window, you can
see “Sample NR” as a definable value with a range of 0–
255 (as compared to the usual 0–127).