MIDIConstants Namespace Reference

Variables

static const char *const MIDI_FILE_HEADER = "MThd"
 
static const char *const MIDI_TRACK_HEADER = "MTrk"
 
static const MIDIByte MIDI_STATUS_BYTE_MASK = 0x80
 
static const MIDIByte MIDI_MESSAGE_TYPE_MASK = 0xF0
 
static const MIDIByte MIDI_CHANNEL_NUM_MASK = 0x0F
 
static const MIDIByte MIDI_NOTE_OFF = 0x80
 
static const MIDIByte MIDI_NOTE_ON = 0x90
 
static const MIDIByte MIDI_POLY_AFTERTOUCH = 0xA0
 
static const MIDIByte MIDI_CTRL_CHANGE = 0xB0
 
static const MIDIByte MIDI_PROG_CHANGE = 0xC0
 
static const MIDIByte MIDI_CHNL_AFTERTOUCH = 0xD0
 
static const MIDIByte MIDI_PITCH_BEND = 0xE0
 
static const MIDIByte MIDI_SELECT_CHNL_MODE = 0xB0
 
static const MIDIByte MIDI_SYSTEM_EXCLUSIVE = 0xF0
 
static const MIDIByte MIDI_TC_QUARTER_FRAME = 0xF1
 
static const MIDIByte MIDI_SONG_POSITION_PTR = 0xF2
 
static const MIDIByte MIDI_SONG_SELECT = 0xF3
 
static const MIDIByte MIDI_TUNE_REQUEST = 0xF6
 
static const MIDIByte MIDI_END_OF_EXCLUSIVE = 0xF7
 
static const MIDIByte MIDI_TIMING_CLOCK = 0xF8
 
static const MIDIByte MIDI_START = 0xFA
 
static const MIDIByte MIDI_CONTINUE = 0xFB
 
static const MIDIByte MIDI_STOP = 0xFC
 
static const MIDIByte MIDI_ACTIVE_SENSING = 0xFE
 
static const MIDIByte MIDI_SYSTEM_RESET = 0xFF
 
static const MIDIByte MIDI_SYSEX_NONCOMMERCIAL = 0x7D
 
static const MIDIByte MIDI_SYSEX_NON_RT = 0x7E
 
static const MIDIByte MIDI_SYSEX_RT = 0x7F
 
static const MIDIByte MIDI_SYSEX_RT_COMMAND = 0x06
 
static const MIDIByte MIDI_SYSEX_RT_RESPONSE = 0x07
 
static const MIDIByte MIDI_MMC_STOP = 0x01
 
static const MIDIByte MIDI_MMC_PLAY = 0x02
 
static const MIDIByte MIDI_MMC_DEFERRED_PLAY = 0x03
 
static const MIDIByte MIDI_MMC_FAST_FORWARD = 0x04
 
static const MIDIByte MIDI_MMC_REWIND = 0x05
 
static const MIDIByte MIDI_MMC_RECORD_STROBE = 0x06
 
static const MIDIByte MIDI_MMC_RECORD_EXIT = 0x07
 
static const MIDIByte MIDI_MMC_RECORD_PAUSE = 0x08
 
static const MIDIByte MIDI_MMC_PAUSE = 0x08
 
static const MIDIByte MIDI_MMC_EJECT = 0x0A
 
static const MIDIByte MIDI_MMC_LOCATE = 0x44
 
static const MIDIByte MIDI_FILE_META_EVENT = 0xFF
 
static const MIDIByte MIDI_SEQUENCE_NUMBER = 0x00
 
static const MIDIByte MIDI_TEXT_EVENT = 0x01
 
static const MIDIByte MIDI_COPYRIGHT_NOTICE = 0x02
 
static const MIDIByte MIDI_TRACK_NAME = 0x03
 
static const MIDIByte MIDI_INSTRUMENT_NAME = 0x04
 
static const MIDIByte MIDI_LYRIC = 0x05
 
static const MIDIByte MIDI_TEXT_MARKER = 0x06
 
static const MIDIByte MIDI_CUE_POINT = 0x07
 
static const MIDIByte MIDI_CHANNEL_PREFIX = 0x20
 
static const MIDIByte MIDI_CHANNEL_PREFIX_OR_PORT = 0x21
 
static const MIDIByte MIDI_END_OF_TRACK = 0x2F
 
static const MIDIByte MIDI_SET_TEMPO = 0x51
 
static const MIDIByte MIDI_SMPTE_OFFSET = 0x54
 
static const MIDIByte MIDI_TIME_SIGNATURE = 0x58
 
static const MIDIByte MIDI_KEY_SIGNATURE = 0x59
 
static const MIDIByte MIDI_SEQUENCER_SPECIFIC = 0x7F
 
static const MIDIByte MIDI_CONTROLLER_BANK_MSB = 0x00
 
static const MIDIByte MIDI_CONTROLLER_VOLUME = 0x07
 
static const MIDIByte MIDI_CONTROLLER_BANK_LSB = 0x20
 
static const MIDIByte MIDI_CONTROLLER_MODULATION = 0x01
 
static const MIDIByte MIDI_CONTROLLER_PAN = 0x0A
 
static const MIDIByte MIDI_CONTROLLER_SUSTAIN = 0x40
 
static const MIDIByte MIDI_CONTROLLER_RESONANCE = 0x47
 
static const MIDIByte MIDI_CONTROLLER_RELEASE = 0x48
 
static const MIDIByte MIDI_CONTROLLER_ATTACK = 0x49
 
static const MIDIByte MIDI_CONTROLLER_FILTER = 0x4A
 
static const MIDIByte MIDI_CONTROLLER_REVERB = 0x5B
 
static const MIDIByte MIDI_CONTROLLER_CHORUS = 0x5D
 
static const MIDIByte MIDI_CONTROLLER_NRPN_1 = 0x62
 
static const MIDIByte MIDI_CONTROLLER_NRPN_2 = 0x63
 
static const MIDIByte MIDI_CONTROLLER_RPN_1 = 0x64
 
static const MIDIByte MIDI_CONTROLLER_RPN_2 = 0x65
 
static const MIDIByte MIDI_CONTROLLER_SOUNDS_OFF = 0x78
 
static const MIDIByte MIDI_CONTROLLER_RESET = 0x79
 
static const MIDIByte MIDI_CONTROLLER_LOCAL = 0x7A
 
static const MIDIByte MIDI_CONTROLLER_ALL_NOTES_OFF = 0x7B
 
static const MIDIByte MIDI_PERCUSSION_CHANNEL = 9
 

Variable Documentation

const char* const MIDIConstants::MIDI_FILE_HEADER = "MThd"
static

Definition at line 36 of file MIDIEvent.h.

Referenced by MIDIFileReader::parseHeader(), and MIDIFileWriter::writeHeader().

const char* const MIDIConstants::MIDI_TRACK_HEADER = "MTrk"
static

Definition at line 37 of file MIDIEvent.h.

Referenced by MIDIFileReader::skipToNextTrack(), and MIDIFileWriter::writeTrack().

const MIDIByte MIDIConstants::MIDI_STATUS_BYTE_MASK = 0x80
static

Definition at line 39 of file MIDIEvent.h.

Referenced by MIDIFileReader::parseTrack().

const MIDIByte MIDIConstants::MIDI_MESSAGE_TYPE_MASK = 0xF0
static

Definition at line 40 of file MIDIEvent.h.

Referenced by MIDIEvent::getMessageType(), and MIDIFileReader::parseTrack().

const MIDIByte MIDIConstants::MIDI_CHANNEL_NUM_MASK = 0x0F
static

Definition at line 41 of file MIDIEvent.h.

Referenced by MIDIEvent::getChannelNumber(), and MIDIFileReader::parseTrack().

const MIDIByte MIDIConstants::MIDI_POLY_AFTERTOUCH = 0xA0
static
const MIDIByte MIDIConstants::MIDI_CTRL_CHANGE = 0xB0
static
const MIDIByte MIDIConstants::MIDI_PROG_CHANGE = 0xC0
static
const MIDIByte MIDIConstants::MIDI_CHNL_AFTERTOUCH = 0xD0
static
const MIDIByte MIDIConstants::MIDI_PITCH_BEND = 0xE0
static
const MIDIByte MIDIConstants::MIDI_SELECT_CHNL_MODE = 0xB0
static

Definition at line 50 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SYSTEM_EXCLUSIVE = 0xF0
static
const MIDIByte MIDIConstants::MIDI_TC_QUARTER_FRAME = 0xF1
static

Definition at line 52 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SONG_POSITION_PTR = 0xF2
static

Definition at line 53 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SONG_SELECT = 0xF3
static

Definition at line 54 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_TUNE_REQUEST = 0xF6
static

Definition at line 55 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_END_OF_EXCLUSIVE = 0xF7
static

Definition at line 56 of file MIDIEvent.h.

Referenced by MIDIFileReader::parseTrack().

const MIDIByte MIDIConstants::MIDI_TIMING_CLOCK = 0xF8
static

Definition at line 57 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_START = 0xFA
static

Definition at line 58 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTINUE = 0xFB
static

Definition at line 59 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_STOP = 0xFC
static

Definition at line 60 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_ACTIVE_SENSING = 0xFE
static

Definition at line 61 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SYSTEM_RESET = 0xFF
static

Definition at line 62 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SYSEX_NONCOMMERCIAL = 0x7D
static

Definition at line 63 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SYSEX_NON_RT = 0x7E
static

Definition at line 64 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SYSEX_RT = 0x7F
static

Definition at line 65 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SYSEX_RT_COMMAND = 0x06
static

Definition at line 66 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_SYSEX_RT_RESPONSE = 0x07
static

Definition at line 67 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_STOP = 0x01
static

Definition at line 68 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_PLAY = 0x02
static

Definition at line 69 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_DEFERRED_PLAY = 0x03
static

Definition at line 70 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_FAST_FORWARD = 0x04
static

Definition at line 71 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_REWIND = 0x05
static

Definition at line 72 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_RECORD_STROBE = 0x06
static

Definition at line 73 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_RECORD_EXIT = 0x07
static

Definition at line 74 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_RECORD_PAUSE = 0x08
static

Definition at line 75 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_PAUSE = 0x08
static

Definition at line 76 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_EJECT = 0x0A
static

Definition at line 77 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_MMC_LOCATE = 0x44
static

Definition at line 78 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_FILE_META_EVENT = 0xFF
static
const MIDIByte MIDIConstants::MIDI_SEQUENCE_NUMBER = 0x00
static

Definition at line 80 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_TEXT_EVENT = 0x01
static

Definition at line 81 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_COPYRIGHT_NOTICE = 0x02
static

Definition at line 82 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_TRACK_NAME = 0x03
static

Definition at line 83 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack(), and MIDIFileReader::parseTrack().

const MIDIByte MIDIConstants::MIDI_INSTRUMENT_NAME = 0x04
static

Definition at line 84 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_LYRIC = 0x05
static

Definition at line 85 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_TEXT_MARKER = 0x06
static

Definition at line 86 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_CUE_POINT = 0x07
static

Definition at line 87 of file MIDIEvent.h.

Referenced by MIDIFileWriter::convert(), and MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_CHANNEL_PREFIX = 0x20
static

Definition at line 88 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_CHANNEL_PREFIX_OR_PORT = 0x21
static

Definition at line 89 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_END_OF_TRACK = 0x2F
static

Definition at line 90 of file MIDIEvent.h.

Referenced by MIDIFileWriter::convert().

const MIDIByte MIDIConstants::MIDI_SET_TEMPO = 0x51
static
const MIDIByte MIDIConstants::MIDI_SMPTE_OFFSET = 0x54
static

Definition at line 92 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_TIME_SIGNATURE = 0x58
static

Definition at line 93 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_KEY_SIGNATURE = 0x59
static

Definition at line 94 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_SEQUENCER_SPECIFIC = 0x7F
static

Definition at line 95 of file MIDIEvent.h.

Referenced by MIDIFileReader::loadTrack().

const MIDIByte MIDIConstants::MIDI_CONTROLLER_BANK_MSB = 0x00
static

Definition at line 96 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_VOLUME = 0x07
static

Definition at line 97 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_BANK_LSB = 0x20
static

Definition at line 98 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_MODULATION = 0x01
static

Definition at line 99 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_PAN = 0x0A
static

Definition at line 100 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_SUSTAIN = 0x40
static

Definition at line 101 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_RESONANCE = 0x47
static

Definition at line 102 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_RELEASE = 0x48
static

Definition at line 103 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_ATTACK = 0x49
static

Definition at line 104 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_FILTER = 0x4A
static

Definition at line 105 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_REVERB = 0x5B
static

Definition at line 106 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_CHORUS = 0x5D
static

Definition at line 107 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_NRPN_1 = 0x62
static

Definition at line 108 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_NRPN_2 = 0x63
static

Definition at line 109 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_RPN_1 = 0x64
static

Definition at line 110 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_RPN_2 = 0x65
static

Definition at line 111 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_SOUNDS_OFF = 0x78
static

Definition at line 112 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_RESET = 0x79
static

Definition at line 113 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_LOCAL = 0x7A
static

Definition at line 114 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_CONTROLLER_ALL_NOTES_OFF = 0x7B
static

Definition at line 115 of file MIDIEvent.h.

const MIDIByte MIDIConstants::MIDI_PERCUSSION_CHANNEL = 9
static

Definition at line 116 of file MIDIEvent.h.

Referenced by MIDIFileReader::parseTrack().