Midi2Defs.h File Reference

Some definitions to define raw MIDI events. More...


Channel Message Masks

Some definitions to define the raw MIDI events.

The default implementation of BMidiLocalConsumer::Data() uses these constants to determine which event has been passed on. If you override that method, you may use the constants yourself.

const uchar B_CHANNEL_PRESSURE = 0xd0
 Identifier of channel pressure message.
const uchar B_CONTROL_CHANGE = 0xb0
 Identifier of control change message.
const uchar B_KEY_PRESSURE = 0xa0
 Identifier of key pressure message.
const uchar B_NOTE_OFF = 0x80
 Identifier of note off message.
const uchar B_NOTE_ON = 0x90
 Identifier of note on message.
const uchar B_PITCH_BEND = 0xe0
 Identifier of pitch bend message.
const uchar B_PROGRAM_CHANGE = 0xc0
 Identifier of program change message.
System Messages

Some definitions to define the raw MIDI system messages.

The default implementation of BMidiLocalConsumer::Data() uses these constants to determine which event system message has been passed on. See BMidiLocalProducer::SpraySystemCommon() and BMidiLocalProducer::SpraySystemRealTime() for more details on how and when to use these messages.

const uchar B_ACTIVE_SENSING = 0xfe
 Identifier of active sensing message.
const uchar B_CABLE_MESSAGE = 0xf5
 Identifier of cable message.
const uchar B_CONTINUE = 0xfb
 Identifier of continue message.
const uchar B_MIDI_TIME_CODE = 0xf1
 Identifier of midi time code message.
const uchar B_SONG_POSITION = 0xf2
 Identifier of song position message.
const uchar B_SONG_SELECT = 0xf3
 Identifier of song select message.
const uchar B_START = 0xfa
 Identifier of start message.
const uchar B_STOP = 0xfc
 Identifier of stop message.
const uchar B_SYS_EX_END = 0xf7
 Identifier of system exclusive end message.
const uchar B_SYS_EX_START = 0xf0
 Identifier of system exclusive start message.
const uchar B_SYSTEM_RESET = 0xff
 Identifier of system reset message.
const uchar B_TIMING_CLOCK = 0xf8
 Identifier of timing clock message.
const uchar B_TUNE_REQUEST = 0xf6
 Identifier of tune request message.
Controller Numbers

Constants that represent specific controller messages.

These constants can be used in BMidiLocalProducer::SprayControlChange() and BMidiLocalConsumer::ControlChange(). These constants represent the MIDI specification.

const uchar B_ALL_NOTES_OFF = 0x7b
 Identifier of all notes off message.
const uchar B_BREATH_CONTROLLER = 0x02
 Identifier of breath controller message.
const uchar B_CELESTE_DEPTH = 0x5e
 Identifier of celeste depth message.
const uchar B_CHORUS_DEPTH = 0x5d
 Identifier of chorus depth message.
const uchar B_DATA_DECREMENT = 0x61
 Identifier of data decrement message.
const uchar B_DATA_ENTRY = 0x06
 Identifier of data entry message.
const uchar B_DATA_INCREMENT = 0x60
 Identifier of data increment message.
const uchar B_EFFECTS_DEPTH = 0x5b
 Identifier of effects depth message.
const uchar B_EXPRESSION_CTRL = 0x0b
 Identifier of expression control message.
const uchar B_FOOT_CONTROLLER = 0x04
 Identifier of foot controller message.
const uchar B_GENERAL_CTRL_1 = 0x10
 Identifier of general control 1 message.
const uchar B_GENERAL_CTRL_2 = 0x11
 Identifier of general control 2 message.
const uchar B_GENERAL_CTRL_3 = 0x12
 Identifier of general control 3 message.
const uchar B_GENERAL_CTRL_4 = 0x13
 Identifier of general control 4 message.
const uchar B_GENERAL_CTRL_5 = 0x50
 Identifier of general control 5 message.
const uchar B_GENERAL_CTRL_6 = 0x51
 Identifier of general control 6 message.
const uchar B_GENERAL_CTRL_7 = 0x52
 Identifier of general control 7 message.
const uchar B_GENERAL_CTRL_8 = 0x53
 Identifier of general control 8 message.
const uchar B_HOLD_2 = 0x45
 Identifier of hold 2 message.
const uchar B_LOCAL_CONTROL = 0x7a
 Identifier of local control message.
const uchar B_MAIN_VOLUME = 0x07
 Identifier of main volume message.
const uchar B_MIDI_BALANCE = 0x08
 Identifier of MIDI balance message.
const uchar B_MODULATION = 0x01
 Identifier of modulation message.
const uchar B_MONO_MODE_ON = 0x7e
 Identifier of mono mode on message.
const uchar B_OMNI_MODE_OFF = 0x7c
 Identifier of omni mode off message.
const uchar B_OMNI_MODE_ON = 0x7d
 Identifier of omni mode on message.
const uchar B_PAN = 0x0a
 Identifier of pan message.
const uchar B_PHASER_DEPTH = 0x5f
 Identifier of phaser depth message.
const uchar B_POLY_MODE_ON = 0x7f
 Identifier of poly mode on message.
const uchar B_PORTAMENTO = 0x41
 Identifier of portamento message.
const uchar B_PORTAMENTO_TIME = 0x05
 Identifier of portamento time message.
const uchar B_RESET_ALL_CONTROLLERS = 0x79
 Identifier of reset all controllers message.
const uchar B_SOFT_PEDAL = 0x43
 Identifier of soft pedal message.
const uchar B_SOSTENUTO = 0x42
 Identifier of sostenuto message.
const uchar B_SUSTAIN_PEDAL = 0x40
 Identifier of sustain pedal message.
const uchar B_TEMPO_CHANGE = 0x51
 Identifier of tempo change message.
const uchar B_TREMOLO_DEPTH = 0x5c
 Identifier of tremelo depth message.

Detailed Description

Some definitions to define raw MIDI events.