Inheritance diagram for Exponent::Midi::CMidiEvent:
Definition at line 43 of file CMidiEvent.hpp.
Exponent::Midi::CMidiEvent::CMidiEvent | ( | const long | status = CMidi::CMIDI_MIDI_NONE , |
|
const long | value = 0 , |
|||
const long | subValue = 0 , |
|||
const long | channel = 1 , |
|||
const long | delta = 0 | |||
) |
Construction
status | Midi status | |
value | Byte 1 of the midi info | |
subValue | Bytes 2 of the midi info | |
channel | The miid channel | |
delta | The time delta, in samples from the start of the block (ion case of a midi file this is from the start of the file), block can be taken to mean the start of the last relevant position to the audio process |
Exponent::Midi::CMidiEvent::CMidiEvent | ( | const CMidiEvent & | event | ) |
Copy construction
event | The event to copy |
virtual Exponent::Midi::CMidiEvent::~CMidiEvent | ( | ) | [virtual] |
Destruction
static int Exponent::Midi::CMidiEvent::compareMidiEvents | ( | const CMidiEvent ** | event1, | |
const CMidiEvent ** | event2 | |||
) | [static] |
Comparison for a qsort
event1 | The first event | |
event2 | The second event |
<0 | class1 goes before class2 0 class1 == class2 >0 class1 goes after class2 |
TPointerCollection::qsortCompare
FORCEINLINE const long Exponent::Midi::CMidiEvent::getChannel | ( | ) | const [inline] |
Get the channel
const | long The midi channel |
Definition at line 164 of file CMidiEvent.hpp.
References m_channel.
virtual void Exponent::Midi::CMidiEvent::getObjectDescription | ( | char * | string, | |
const long | size | |||
) | const [virtual] |
Get a description of the object
string | On return is filled with the description | |
size | The size of the stirng |
Reimplemented from Exponent::Basics::CCountedObject.
FORCEINLINE double Exponent::Midi::CMidiEvent::getPitchBend | ( | ) | const [inline] |
Get pitch bend value
double | The pitch bend value as a value -1 -> 1, where 0 is no pitch bend |
Definition at line 176 of file CMidiEvent.hpp.
References m_pitchBend.
FORCEINLINE const long Exponent::Midi::CMidiEvent::getStatus | ( | ) | const [inline] |
Get the status
const | long The status |
Definition at line 146 of file CMidiEvent.hpp.
References m_status.
FORCEINLINE const long Exponent::Midi::CMidiEvent::getSubValue | ( | ) | const [inline] |
Get the sub value
const | long Sub value |
Definition at line 158 of file CMidiEvent.hpp.
References m_subValue.
FORCEINLINE const long Exponent::Midi::CMidiEvent::getTimeDelta | ( | ) | const [inline] |
Get the time delta
const | long The time delta |
Definition at line 170 of file CMidiEvent.hpp.
References m_timeDelta.
FORCEINLINE const long Exponent::Midi::CMidiEvent::getValue | ( | ) | const [inline] |
Get the value
const | long Main value |
Definition at line 152 of file CMidiEvent.hpp.
References m_value.
bool Exponent::Midi::CMidiEvent::isAllNotesOff | ( | ) | const [inline] |
Is this an all notes off message
bool | True if all notes off, false otherwise |
Definition at line 263 of file CMidiEvent.hpp.
References Exponent::Midi::CMidi::CMIDI_ALL_NOTES_OFF, and m_status.
bool Exponent::Midi::CMidiEvent::isControlChange | ( | ) | const [inline] |
Is control change message
bool | True if control change message, false otherwise |
Definition at line 269 of file CMidiEvent.hpp.
References Exponent::Midi::CMidi::CMIDI_CONTROL_CHANGE, and m_status.
bool Exponent::Midi::CMidiEvent::isNoteOff | ( | ) | const [inline] |
Is this a note off message
bool | True if Note off, false otherwise |
Definition at line 257 of file CMidiEvent.hpp.
References Exponent::Midi::CMidi::CMIDI_NOTE_OFF, Exponent::Midi::CMidi::CMIDI_NOTE_ON, m_status, and m_subValue.
bool Exponent::Midi::CMidiEvent::isNoteOn | ( | ) | const [inline] |
Is this a note on message
bool | True if Note on, false otherwise |
Definition at line 251 of file CMidiEvent.hpp.
References Exponent::Midi::CMidi::CMIDI_NOTE_ON, m_status, and m_subValue.
bool Exponent::Midi::CMidiEvent::isPitchBend | ( | ) | const [inline] |
Is a pitch bend message
bool | True if this is a pitch bend message, false otherwise |
Definition at line 275 of file CMidiEvent.hpp.
References Exponent::Midi::CMidi::CMIDI_PITCH_BEND, and m_status.
FORCEINLINE bool Exponent::Midi::CMidiEvent::isSynchronousWith | ( | const CMidiEvent & | event | ) | [inline] |
Do the events happen at the same time
event | The event to compare with |
bool | True if time deltas are equal, false otherwise |
Definition at line 240 of file CMidiEvent.hpp.
References m_timeDelta.
virtual bool Exponent::Midi::CMidiEvent::operator!= | ( | const CMidiEvent & | event | ) | [virtual] |
Inequality operator
event | The event to compare to |
bool | True if events are not synchronous, false otherwise |
bool Exponent::Midi::CMidiEvent::operator< | ( | const CMidiEvent & | event | ) |
Less than operator
event | The event to compare to |
bool | True if timeDelta is less than events time delta, false otherwise |
bool Exponent::Midi::CMidiEvent::operator<= | ( | const CMidiEvent & | event | ) |
Less than or equal operator
event | The event to compare to |
bool | True if timeDelta is less than or equal events time delta, false otherwise |
CMidiEvent& Exponent::Midi::CMidiEvent::operator= | ( | const CMidiEvent & | event | ) |
Assignment operator
event | The event to copy |
CMidiEvent& | A reference to this |
virtual bool Exponent::Midi::CMidiEvent::operator== | ( | const CMidiEvent & | event | ) | [virtual] |
Equality operator
event | The event to compare to |
bool | True if events are synchronous, false otherwise |
bool Exponent::Midi::CMidiEvent::operator> | ( | const CMidiEvent & | event | ) |
Greater than operator
event | The event to compare to |
bool | True if timeDelta is greater than events time delta, false otherwise |
bool Exponent::Midi::CMidiEvent::operator>= | ( | const CMidiEvent & | event | ) |
Greater than or euql operator
event | The event to compare to |
bool | True if timeDelta is greater than events time delta, false otherwise |
FORCEINLINE void Exponent::Midi::CMidiEvent::setChannel | ( | const long | channel | ) | [inline] |
Set the channel
channel | The midi channel |
Definition at line 202 of file CMidiEvent.hpp.
References m_channel.
FORCEINLINE void Exponent::Midi::CMidiEvent::setEvent | ( | const long | status, | |
const long | value, | |||
const long | subValue, | |||
const long | channel, | |||
const long | delta | |||
) | [inline] |
Set all values
status | Midi status | |
value | Byte 1 of the midi info | |
subValue | Bytes 2 of the midi info | |
channel | The miid channel | |
delta | The time delta |
Definition at line 224 of file CMidiEvent.hpp.
References m_channel, m_status, m_subValue, m_timeDelta, and m_value.
FORCEINLINE void Exponent::Midi::CMidiEvent::setPitchBend | ( | const double | pitchBend | ) | [inline] |
Set the pitch bend
pitchBend | Should be in the range -1 -> +1 with 0 being no bend |
Definition at line 214 of file CMidiEvent.hpp.
References m_pitchBend.
FORCEINLINE void Exponent::Midi::CMidiEvent::setStatus | ( | const long | status | ) | [inline] |
Set the status
status | The status |
Definition at line 184 of file CMidiEvent.hpp.
References m_status.
FORCEINLINE void Exponent::Midi::CMidiEvent::setSubValue | ( | const long | value | ) | [inline] |
Set the subvalue
value | The sub value |
Definition at line 196 of file CMidiEvent.hpp.
References m_subValue.
FORCEINLINE void Exponent::Midi::CMidiEvent::setTimeDelta | ( | const long | delta | ) | [inline] |
Set the time delta
delta | The time delta |
Definition at line 208 of file CMidiEvent.hpp.
References m_timeDelta.
FORCEINLINE void Exponent::Midi::CMidiEvent::setValue | ( | const long | value | ) | [inline] |
Set the value
value | The main value |
Definition at line 190 of file CMidiEvent.hpp.
References m_value.
long Exponent::Midi::CMidiEvent::m_channel [protected] |
midi channel
Definition at line 295 of file CMidiEvent.hpp.
Referenced by getChannel(), setChannel(), and setEvent().
double Exponent::Midi::CMidiEvent::m_pitchBend [protected] |
the pitch bend amount
Definition at line 297 of file CMidiEvent.hpp.
Referenced by getPitchBend(), and setPitchBend().
long Exponent::Midi::CMidiEvent::m_status [protected] |
Note on, Note off, control change, all notes off....
Definition at line 292 of file CMidiEvent.hpp.
Referenced by getStatus(), isAllNotesOff(), isControlChange(), isNoteOff(), isNoteOn(), isPitchBend(), setEvent(), and setStatus().
long Exponent::Midi::CMidiEvent::m_subValue [protected] |
velocity, value
Definition at line 294 of file CMidiEvent.hpp.
Referenced by getSubValue(), isNoteOff(), isNoteOn(), setEvent(), and setSubValue().
long Exponent::Midi::CMidiEvent::m_timeDelta [protected] |
time delta within buffer in samples
Definition at line 296 of file CMidiEvent.hpp.
Referenced by getTimeDelta(), isSynchronousWith(), setEvent(), and setTimeDelta().
long Exponent::Midi::CMidiEvent::m_value [protected] |
note, cc number
Definition at line 293 of file CMidiEvent.hpp.
Referenced by getValue(), setEvent(), and setValue().