MidiMessage.isNoteOff

Checks whether the status type of the message is 'Note Off' or 'Note On' with a velocity of 0.

IMPORTANT: As per MIDI 1.0, a 'Note On' event with a velocity of zero should be treated like a 'Note Off' event. Which is why this function checks velocity == 0.

Some devices send a 'Note On' message with a velocity value of zero instead of a real 'Note Off' message. Many DAWs will automatically convert such ones to explicit ones, but one cannot rely on this.

struct MidiMessage
pure nothrow @nogc const
bool
isNoteOff
()

See Also

isNoteOn()

Meta