ChannelMessageType

ChannelMessageType enumerates the possible types of channel messages.

The underlying value of this enumeration is the four upper bits of the status byte (and always starts with a 1 bit). After all, a channel message has the message type in the four upper bits and a channel identifier in the four lower bits of the status byte.

The functions isChannelVoiceMessage() and isChannelModeMessage() need the data bytes in addition to the status byte to identify if a channel message is a voice message or a mode message, because some status byte values overlap (see for example ChannelMessageType.controlChangeOrMode).

See also: mididi.def.isChannelMessage

Values

ValueMeaning
noteOff0x8
noteOn0x9
polyphonicKeyPressure0xA
controlChangeOrMode0xB

NOTE: this kind of channel message can be either a Control Change message or a Channel Mode message, depending on the data bytes. Use isChannelModeMessage() to find out which it is.

programChange0xC
channelPressure0xD
pitchWheelChange0xE

Meta