Appendix
2
MIDI
event types as decimal values
EVENT TYPE | DECIMAL VALUE |
Note Off | 128-143 |
Note On | 144-159 |
Polyfonic Channel Pressure | 160-175 |
Control Change | 176-191 |
Program Change | 192-207 |
Monofonic Channel Pressure | 208-223 |
Pitch Bend Change | 224-239 |
These values
contains both event type and MIDI-channel.
A NoteOn on MIDI-channel 1 is written 144. NoteOn on MIDI-channel 5 is
148 etc.
A complete note event on MIDI channel 5 is thus:
[0,148,66,100,240]
([timePos in part,eventType+MIDI channel, noteNr, velocity, length])
Control change events requires that a controller number follows immediately after the value from the list above.
Control 7
(MIDI-volume) on Midi-channel 6 with a value of 100 is written:
[0,189,7,100]
([timePos in part,eventType+MIDI channel, CC nr, value])