Microtonal, just intonation, electronic music software Microtonal, just intonation, electronic music software
Login   |  Site Map

the pitch bend archive

2005-08-31 at 17:00

MIDI Note-on Message

The MIDI note-on message is used for turning on MIDI notes. The note-on message is a channel message and is consequently restricted to one of 16 pre-defined MIDI channels (i.e., numbers 0 through 15). The basic format of the MIDI note-on message is shown below:

Most-significant NibbleLeast-significant NibbleByte 1Byte 2
1001MIDI channel [0 - 15]Key Number [0 - 127]Velocity [0 - 127]

Note-on Examples

Middle-A note over MIDI channel 3 with a velocity of 79: 1001 0011--0100 0101--0100 1111 (bin) => 93-45-4F (hex).

Middle-C note over MIDI channel 10 with a velocity of 127: 1001 1010--0100 1000--0111 1111 (bin) => 9A-48-7F (hex).

In both cases, the note-on messages are assigned to one of the non-percussion channels. To turn a message into a percussion note-on message, just play the note over the percussion channel (channel 9 in General MIDI).

Bass Drum 1 with a velocity of 79: 1001 1001--0010 0100--0100 1111 (bin) => 99-24-4F (hex).

High Bongo with a velocity of 127: 1001 1010-0110 1100-0111 1111 (bin) => 99-3C-7F (hex).

Just a reminder. The target channel determines whether a MIDI note is interpreted as a percussion note or a pitched note.

MIDI Note-off Message

The MIDI note-on message is used for turning a currently playing MIDI note off. When the note is turned off, it is just like an instrumentalist releasing a note. Hence, when the note is released, its sound should start decaying according to the timbre of the currently sounding instrument. One thing to keep in mind is that you need to know the key-number and the MIDI channel that were used when turning the note on. Turing a note-off that isn't currently registered with the MIDI synthesizer as being on will have no effect.

Most-significant NibbleLeast-significant NibbleByte 1Byte 2
1000MIDI channel [0 - 15]Key Number [0 - 127]Velocity [0 - 127]


MIDI Software Related Articles