Package echonest :: Package remix :: Package support :: Package midi :: Module MidiFileParser :: Class MidiFileParser
[hide private]
[frames] | no frames]

Class MidiFileParser

source code

The MidiFileParser is the lowest level parser that see the data as midi data. It generates events that gets triggered on the outstream.
Instance Methods [hide private]
 
__init__(self, raw_in, outstream)
raw_data is the raw content of a midi file as a string.
source code
 
parseMThdChunk(self)
Parses the header chunk
source code
 
parseMTrkChunk(self)
Parses a track chunk. This is the most important part of the parser.
source code
 
parseMTrkChunks(self)
Parses all track chunks.
source code