Inheritance diagram for Exponent::Midi::CMidiEventList:
Can be filled at the start of a buffer with the midi information
and can then provides extra information about those buffers
This is an optimised version of a midi event list, used and designed for real time application
(such as inside a VST plugin). It is not designed for long pieces of midi data, which will break
the size constraints of the event list (
1.0.1 Added the getIterationObject function
Definition at line 46 of file CMidiEventList.hpp.
Exponent::Midi::CMidiEventList::CMidiEventList | ( | ) |
Construction
virtual Exponent::Midi::CMidiEventList::~CMidiEventList | ( | ) | [virtual] |
Destruction
void Exponent::Midi::CMidiEventList::clearEvents | ( | ) |
Clear all events
const CMidiEvent* Exponent::Midi::CMidiEventList::getEventAtIndex | ( | const long | index | ) | const |
Get an event at a location
index | The index of the event |
const | CMidiEvent* The event or null if index range error |
long Exponent::Midi::CMidiEventList::getMidiChannel | ( | ) | const [inline] |
Get the midi channel
long | The midi channel |
Definition at line 99 of file CMidiEventList.hpp.
References m_midiChannel.
Referenced by Exponent::Vst::CVstEffect::getMidiChannel().
const CMidiEvent* Exponent::Midi::CMidiEventList::getNextEvent | ( | ) | const |
Get the next event
const | CMidiEvent* The next midi event or NULL if no more midi events |
long Exponent::Midi::CMidiEventList::getNumberOfEvents | ( | ) | [inline] |
Get the number of events
long | The number of events for this buffer |
Definition at line 105 of file CMidiEventList.hpp.
References m_numberOfEvents.
virtual void Exponent::Midi::CMidiEventList::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.
long Exponent::Midi::CMidiEventList::getTimeDeltaDifference | ( | ) | const |
Get the time different between the selected node and the next node. Assumed sorted list
long | The delta difference |
bool Exponent::Midi::CMidiEventList::moreEvents | ( | ) | const |
Are there more events
bool | True if there are more events |
void Exponent::Midi::CMidiEventList::moveToNextEvent | ( | ) |
Increment to next event
void Exponent::Midi::CMidiEventList::setMidiChannel | ( | const long | midiChannel | ) | [inline] |
Set the midi channel, events not on this midi channel are ignored
midiChannel | The midi channel to use |
Definition at line 93 of file CMidiEventList.hpp.
References m_midiChannel.
const long Exponent::Midi::CMidiEventList::CMIDI_EVENT_LIST_MAX_EVENTS = 128 [static] |
Maximum events per buffer
Definition at line 58 of file CMidiEventList.hpp.
long Exponent::Midi::CMidiEventList::m_currentEvent [protected] |
The current event
Definition at line 149 of file CMidiEventList.hpp.
The midi event list
Definition at line 146 of file CMidiEventList.hpp.
long Exponent::Midi::CMidiEventList::m_midiChannel [protected] |
Channel we will respond to
Definition at line 147 of file CMidiEventList.hpp.
Referenced by getMidiChannel(), and setMidiChannel().
long Exponent::Midi::CMidiEventList::m_numberOfEvents [protected] |
How many events do we have
Definition at line 148 of file CMidiEventList.hpp.
Referenced by getNumberOfEvents().