MidiTrack Class Reference
#include <track.h>
Detailed Description
Stores a MIDI track.Stores a MIDI track with a simple API.This can be thought of as a list of MIDI events.
The data types used to store the track is similar to how events are stored on a MIDI file, but used in a way that allows for faster parses.
This class is used on MidiPlayer::loadSong() to load the song and later play it with MidiPlayer::play().
- Version:
- 0.9.5 17/01/2000
- Author:
- Antonio Larrosa Jimenez <larrosa@kde.org>
Definition at line 126 of file track.h.
Public Member Functions | |
MidiTrack (FILE *file, int tpcn, int Id) | |
~MidiTrack () | |
int | ticksPassed (ulong ticks) |
int | msPassed (ulong ms) |
int | currentMs (double ms) |
ulong | waitTicks (void) |
double | absMsOfNextEvent (void) |
void | changeTempo (ulong t) |
void | readEvent (MidiEvent *ev) |
void | init (void) |
void | clear (void) |
Constructor & Destructor Documentation
|
Constructor.
|
|
Destructor.
|
Member Function Documentation
|
Returns the absolute number of milliseconds of the next event.
|
|
Change the tempo of the song.
|
|
Clears the internal variables.
|
|
Returns the current millisecond which the iterator is at.
|
|
Initializes the iterator.
|
|
Makes the iterator advance the given number of milliseconds.
|
|
Reads the event at the iterator position, and puts it on the structure pointed to by
|
|
Makes the iterator advance the given number of ticks.
|
|
Returns the number of ticks left for the next event.
|
The documentation for this class was generated from the following files: