 
    
   
Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial
    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_;
 
 
MidiFileIn(std::string fileName)
Default constructor.
~MidiFileIn()
Class destructor.
int getFileFormat() const
Return the MIDI file format (0, 1, or 2).
Definition: MidiFileIn.h:43
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...
void rewindTrack(unsigned int track=0)
Move the specified track event reader to the beginning of its track.
A standard MIDI file reading/parsing class.
Definition: MidiFileIn.h:29
unsigned int getNumberOfTracks() const
Return the number of tracks in the MIDI file.
Definition: MidiFileIn.h:46
The STK namespace.
Definition: ADSR.h:6
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 ...
double getTickSeconds(unsigned int track=0)
Get the current value, in seconds, of delta-time ticks for the specified track.
int getDivision() const
Return the MIDI file division value from the file header.
Definition: MidiFileIn.h:54
STK base class.
Definition: Stk.h:132