28 #include <libtdemid/dattypes.h>
129 class MidiTrackPrivate;
148 ulong readVariableLengthValue(
void);
154 double time_at_previous_tempochange;
155 double ticks_from_previous_tempochange;
157 double time_at_next_event;
uchar patch
Patch (if command was a change patch command)
ulong waitTicks(void)
Returns the number of ticks left for the next event.
uchar command
MIDI Command.
void readEvent(MidiEvent *ev)
Reads the event at the iterator position, and puts it on the structure pointed to by ev...
ulong length
Length of the generic data variable.
An structure that represents a MIDI event.
void clear(void)
Clears the internal variables.
void changeTempo(ulong t)
Change the tempo of the song.
int ticksPassed(ulong ticks)
Makes the iterator advance the given number of ticks.
MidiTrack(FILE *file, int tpcn, int Id)
Constructor.
void init(void)
Initializes the iterator.
double absMsOfNextEvent(void)
Returns the absolute number of milliseconds of the next event.
uchar * data
The data for commands like text, sysex, etc.
int currentMs(double ms)
Returns the current millisecond which the iterator is at.
uchar ctl
Patch (if command was a controller command)
int msPassed(ulong ms)
Makes the iterator advance the given number of milliseconds.