[][src]Module midi_consts::channel_event

Constants for channel events

Channel events consist of two or three bytes:

  • byte 1: event type (first four bits) and midi channel (last four bits)
  • byte 2: parameter 1
  • byte 3: parameter 2 (used for most, but not all event types)

Modules

control_change

Constants to represent controller change types.

Constants

CHANNEL_KEY_PRESSURE

Event type of channel pressure ("channel aftertouch").

CONTROL_CHANGE

Event type of a controller event.

EVENT_TYPE_MASK

The first byte of a channel event contains both the event type and the midi channel in one byte. Use this bit mask to get the event type.

MIDI_CHANNEL_MASK

The first byte of a channel event contains both the event type and the midi channel in one byte. Use this bit mask to get the midi channel.

NOTE_OFF

Event type of note off event.

NOTE_ON

Event type of note on event.

PITCH_BEND_CHANGE

Event type of a pitch bend event.

POLYPHONIC_KEY_PRESSURE

Event type for polyphonic key pressure ("aftertouch").

PROGRAM_CHANGE

Event type of a program change.