| previous by date | index | next by date |
| previous in topic | topic list | next in topic |
| MIDI commands are sent as groups of 1, 2 or 3 8-bit bytes. The top bit of every byte is a flag which indicates if it is a status or data byte. A pitch wheel command sends a 14-bit value as a sequence of three bytes: a status byte that says it's a pitch wheel command, followed by two data bytes. Since the top bit of each data byte is already used as the status/data flag, seven remain so two bytes gives 14 bits. The first of the two data bytes is the MSB (most-significant byte), and the second is the LSB (least significant byte). Continuous controller commands are always three bytes long: the status byte indicating it's a continuous controller command, followed by two data bytes. One of the data bytes indicates which CC# it is, the other contains the 7-bit data for that CC. If you want more than 7 bits you'll need to concatenate two CC#s together in your MIDI decoder as is done in some synths. Eric --- On Thu, 3/19/09, ithaib <ithaib@...> wrote: |