Every event type has a unique ID number and a name associated with it. For example, a MIDI Note On event has an ID number of 144 and a name of On Note. A Pitch Wheel event has an ID number of 224 and a name of Pitch Wheel.
When specifying an event type to MidiIoOutShort(), you can specify either the ID number or name. For MidiIoOutLong(), you must use the ID number (and combine it with the MIDI channel number for Voice Category events).
The following charts list each event ID number, followed by its name, and then the MIDI data values associated with that event.
The following events are MIDI events that can be sent to, or received at, a MIDI IN or OUT port.
Voice Category -- The MIDI channel must be specified for the event by passing the channel number to MidiIoOutShort(), or adding it (minus one) to the ID number for MidiIoOutLong().
Number Name Data Values 144 'On Note' or '(Off) Note' The first data value is the note number. The second data value is the velocity, which is always 0 for "(Off) Note", and always non-zero for "On Note". 128 'Off Note' The first data value is the note number. The second data value is the velocity. 208 'Poly Press' The first (and only) data value is pressure. 160 'Aftertouch' The first data value is the note number. The second data value is the pressure. 192 'Program' The first (and only) data value is the program number, where 0 is the first program in the current bank. 176 'Controller' The first data value is the controller number. The second data value is the controller's value. 224 'Pitch Wheel' The first (and only) data value is the pitch wheel offset, a number from -8192 to 8191 where 0 is centered wheel.
System Exclusive -- large data exchange. Use MidiIoOutLong() to send a message with more than 255 data values.
Number Name Data Values 240 'Sysex' There may be up to 255 data bytes if using MidiIoOutShort().
MIDI Sync/Timing
Number Name Data Values 241 'MTC' The first (and only) data value1 is the frame value. 248 'Clock' There are no data bytes. 242 'Sng Position' The first (and only) data value is the song position from 0 to 16383. 243 'Select Sng' The first (and only) data value is the song number. 250 'Start' There are no data bytes. 251 'Resume' There are no data bytes. 252 'Stop' There are no data bytes.
Miscellaneous
Number Name Data Values 246 'Tune' There are no data bytes. 254 'Sense' There are no data bytes. 255 'Reset' There are no data bytes.
Undefined
Number Name Data Values 244 'F4' Whatever data bytes it has must be specified. 245 'F5' Whatever data bytes it has must be specified. 253 'FD' Whatever data bytes it has must be specified.