1 #ifndef STK_MIDIFILEIN_H
2 #define STK_MIDIFILEIN_H
86 unsigned long getNextEvent( std::vector<unsigned char> *event,
unsigned int track = 0 );
99 unsigned long getNextMidiEvent( std::vector<unsigned char> *midiEvent,
unsigned int track = 0 );
108 bool readVariableLength(
unsigned long *value );
111 unsigned int nTracks_;
115 std::vector<double> tickSeconds_;
116 std::vector<long> trackPointers_;
117 std::vector<long> trackOffsets_;
118 std::vector<long> trackLengths_;
119 std::vector<char> trackStatus_;
128 std::vector<TempoChange> tempoEvents_;
129 std::vector<unsigned long> trackCounters_;
130 std::vector<unsigned int> trackTempoIndex_;
A standard MIDI file reading/parsing class.
Definition: MidiFileIn.h:30
unsigned long getNextEvent(std::vector< unsigned char > *event, unsigned int track=0)
Fill the user-provided vector with the next event in the specified track and return the event delta-t...
int getFileFormat() const
Return the MIDI file format (0, 1, or 2).
Definition: MidiFileIn.h:43
void rewindTrack(unsigned int track=0)
Move the specified track event reader to the beginning of its track.
~MidiFileIn()
Class destructor.
double getTickSeconds(unsigned int track=0)
Get the current value, in seconds, of delta-time ticks for the specified track.
unsigned long getNextMidiEvent(std::vector< unsigned char > *midiEvent, unsigned int track=0)
Fill the user-provided vector with the next MIDI channel event in the specified track and return the ...
int getDivision() const
Return the MIDI file division value from the file header.
Definition: MidiFileIn.h:54
MidiFileIn(std::string fileName)
Default constructor.
unsigned int getNumberOfTracks() const
Return the number of tracks in the MIDI file.
Definition: MidiFileIn.h:46
STK base class.
Definition: Stk.h:133
The STK namespace.
Definition: ADSR.h:6