Arduino MIDI File Parser
|
#include <MidiFileParserMultiTrack.h>
Public Member Functions | |
void | add (int track, midi_time_event event) |
Adds an midi event to the indicated track. | |
int | trackCount () |
Provides the number of tracks. | |
void | begin () |
Moves the iterators to the first element. | |
midi_time_event & | nextEvent () |
Provides the next event. | |
size_t | size () |
Count number for midi events. | |
bool | isEmpty () |
Returns true if there are no midi events. | |
uint64_t | lastTime (int track) |
Provides the last recorded time for the indicated track. | |
void | end () |
Releases all data. | |
ProcessingStatus | status () |
Provides the current processing status. | |
midi_time_event & | getNoDataEvent () |
Provides the reference to the nodata time event which signals that we provided no data. | |
Protected Member Functions | |
void | addTrack (int track) |
Protected Attributes | |
std::vector< std::list< midi_time_event > > | tracks |
std::vector< std::list< midi_time_event >::iterator > | iterators |
midi_time_event | no_data |
ProcessingStatus | process_status = Inserting |
A list of events for each track held in an array