22 #ifndef _MIDI_EVENT_H_ 23 #define _MIDI_EVENT_H_ 135 const std::string &metaMessage) :
147 const std::string &sysEx) :
161 unsigned long addTime(
const unsigned long &time) {
216 std::cerr <<
"WARNING: MIDI exception: " 217 << message.toLocal8Bit().data() << std::endl;
221 virtual const char *
what()
const throw() {
bool operator()(const MIDIEvent &mE1, const MIDIEvent &mE2) const
MIDIEvent(unsigned long deltaTime, MIDIByte eventCode, MIDIByte data1=0, MIDIByte data2=0)
static const MIDIByte MIDI_KEY_SIGNATURE
static const MIDIByte MIDI_MMC_PLAY
static const MIDIByte MIDI_CHANNEL_PREFIX_OR_PORT
static const MIDIByte MIDI_END_OF_TRACK
static const MIDIByte MIDI_CONTROLLER_FILTER
MIDIEvent & operator=(const MIDIEvent)
MIDIByte getEventCode() const
MIDIByte getMessageType() const
static const MIDIByte MIDI_CONTROLLER_RPN_2
static const MIDIByte MIDI_COPYRIGHT_NOTICE
void setDuration(const unsigned long &duration)
static const MIDIByte MIDI_CONTROLLER_RESET
unsigned long m_deltaTime
static const MIDIByte MIDI_CHANNEL_PREFIX
static const MIDIByte MIDI_MMC_RECORD_STROBE
static const MIDIByte MIDI_SYSEX_RT
static const MIDIByte MIDI_CHANNEL_NUM_MASK
static const MIDIByte MIDI_TUNE_REQUEST
static const MIDIByte MIDI_CONTROLLER_MODULATION
static const MIDIByte MIDI_TC_QUARTER_FRAME
static const char *const MIDI_TRACK_HEADER
static const MIDIByte MIDI_SONG_SELECT
static const MIDIByte MIDI_CONTROLLER_NRPN_2
static const MIDIByte MIDI_TRACK_NAME
static const MIDIByte MIDI_MMC_DEFERRED_PLAY
MIDIByte getData1() const
static const MIDIByte MIDI_TEXT_MARKER
void setTime(const unsigned long &time)
static const MIDIByte MIDI_CONTROLLER_ATTACK
static const MIDIByte MIDI_SELECT_CHNL_MODE
static const MIDIByte MIDI_SEQUENCE_NUMBER
static const MIDIByte MIDI_MMC_EJECT
static const MIDIByte MIDI_MMC_STOP
MIDIByte getMetaEventCode() const
static const MIDIByte MIDI_TEXT_EVENT
static const MIDIByte MIDI_CONTROLLER_BANK_LSB
static const MIDIByte MIDI_MMC_RECORD_PAUSE
MIDIEvent(unsigned long deltaTime, MIDIByte eventCode, MIDIByte metaEventCode, const std::string &metaMessage)
static const MIDIByte MIDI_SMPTE_OFFSET
static const MIDIByte MIDI_PERCUSSION_CHANNEL
MIDIByte getPitch() const
static const MIDIByte MIDI_MMC_REWIND
static const MIDIByte MIDI_CONTROLLER_NRPN_1
static const MIDIByte MIDI_LYRIC
static const MIDIByte MIDI_SYSEX_RT_COMMAND
friend bool operator<(const MIDIEvent &a, const MIDIEvent &b)
static const MIDIByte MIDI_CUE_POINT
bool operator()(const MIDIEvent *mE1, const MIDIEvent *mE2) const
static const MIDIByte MIDI_FILE_META_EVENT
MIDIEvent(unsigned long deltaTime, MIDIByte eventCode, const std::string &sysEx)
static const MIDIByte MIDI_SET_TEMPO
static const MIDIByte MIDI_SYSEX_NON_RT
static const MIDIByte MIDI_CONTROLLER_ALL_NOTES_OFF
static const MIDIByte MIDI_CONTROLLER_RPN_1
static const MIDIByte MIDI_INSTRUMENT_NAME
static const MIDIByte MIDI_CONTROLLER_RESONANCE
static const MIDIByte MIDI_SEQUENCER_SPECIFIC
static const MIDIByte MIDI_STATUS_BYTE_MASK
std::string getMetaMessage() const
static const MIDIByte MIDI_STOP
unsigned long getTime() const
static const MIDIByte MIDI_TIMING_CLOCK
virtual const char * what() const
static const MIDIByte MIDI_CONTROLLER_SOUNDS_OFF
static const MIDIByte MIDI_ACTIVE_SENSING
MIDIByte getVelocity() const
static const MIDIByte MIDI_PITCH_BEND
static const MIDIByte MIDI_MMC_RECORD_EXIT
static const MIDIByte MIDI_MMC_PAUSE
std::string m_metaMessage
MIDIByte getChannelNumber() const
MIDIException(QString message)
static const MIDIByte MIDI_CONTROLLER_RELEASE
static const MIDIByte MIDI_START
static const MIDIByte MIDI_MMC_LOCATE
static const MIDIByte MIDI_MMC_FAST_FORWARD
static const MIDIByte MIDI_CTRL_CHANGE
static const MIDIByte MIDI_CONTROLLER_REVERB
static const MIDIByte MIDI_POLY_AFTERTOUCH
static const MIDIByte MIDI_SYSTEM_EXCLUSIVE
static const MIDIByte MIDI_CONTROLLER_LOCAL
static const MIDIByte MIDI_NOTE_OFF
static const char *const MIDI_FILE_HEADER
static const MIDIByte MIDI_PROG_CHANGE
MIDIByte getData2() const
static const MIDIByte MIDI_SYSTEM_RESET
static const MIDIByte MIDI_SYSEX_RT_RESPONSE
unsigned long getDuration() const
static const MIDIByte MIDI_TIME_SIGNATURE
static const MIDIByte MIDI_SONG_POSITION_PTR
static const MIDIByte MIDI_CONTINUE
static const MIDIByte MIDI_SYSEX_NONCOMMERCIAL
static const MIDIByte MIDI_MESSAGE_TYPE_MASK
void setMetaMessage(const std::string &meta)
static const MIDIByte MIDI_NOTE_ON
static const MIDIByte MIDI_CONTROLLER_VOLUME
static const MIDIByte MIDI_CONTROLLER_SUSTAIN
static const MIDIByte MIDI_END_OF_EXCLUSIVE
static const MIDIByte MIDI_CHNL_AFTERTOUCH
static const MIDIByte MIDI_CONTROLLER_PAN
unsigned long addTime(const unsigned long &time)
static const MIDIByte MIDI_CONTROLLER_BANK_MSB
static const MIDIByte MIDI_CONTROLLER_CHORUS