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;
ulong length
Length of the generic data variable.
double absMsOfNextEvent(void)
Returns the absolute number of milliseconds of the next event.
uchar patch
Patch (if command was a change patch command)
An structure that represents a MIDI event.
int ticksPassed(ulong ticks)
Makes the iterator advance the given number of ticks.
int msPassed(ulong ms)
Makes the iterator advance the given number of milliseconds.
void clear(void)
Clears the internal variables.
ulong waitTicks(void)
Returns the number of ticks left for the next event.
MidiTrack(FILE *file, int tpcn, int Id)
Constructor.
uchar * data
The data for commands like text, sysex, etc.
int currentMs(double ms)
Returns the current millisecond which the iterator is at.
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.
uchar ctl
Patch (if command was a controller command)
void changeTempo(ulong t)
Change the tempo of the song.
void init(void)
Initializes the iterator.