MidiMessage
HC
Sound programming
Midi
MidiMessage
MidiMessage message
The input must be a list. You must already of issued a MidiOpen command to use this command.
message:(List) A Midi message in one of 3 forms explained below.
There are 3 forms of the Midi message, the Short form, the Long form and the System Exclusive form.
Short form message:
[status data1 data2]
The Short form is the common form and always has a 3 integer list.
The first integer is known as the Status BYTE (it can also be thought of as a COMMAND BYTE).
It must be followed by 2 data bytes even if the message requires only 1 (just use 0).
status:(Integer) In Midi terminology this is the "status byte" but I call it the "command code" in the table below.
data1:(Integer) Data byte 1 of the Midi "command code".
data2:(Integer) Data byte 2 of the Midi "command code".
Long form message:
[status data1 data2 status data1 data2 ...]
The Long form is similar to the Short form but integer list contains many short messages (triples).
System Exclusive form message:
[240 data1 data2 data3 data4 ...]
The SYSTEM EXCLUSIVE form must be led by the system exclusive status byte 240 (F0 hex).
It can then be followed by any amount of data bytes.
data1:(Integer) First data byte specific to your midi device.
data2:(Integer) First data byte specific to your midi device.
and so on.
See the Midi Table which basically is a Specification of the Midi Message.
This documentation is not attempt to teach you Midi. But there is enough information here to hopefully get you started.
For more information you may be interested in purchasing a book on Midi such as:
Midi BASICS by Akira Otsuka and Akihiko Nakajima.
Example:
Reference: