Class:            MIDIFileVoice

Environment:      Siren
Superclass:         Siren.Voice
Category:         MusicIO-Voices
Instance variables:   fileType tracks ppq tempo

A MIDIFileVoice can read version 2 MIDI files.

accessing

defaultEventClass
   

tempo
   

tempo: tem
   

read/write

eventList
   load a MIDI file into anEventList.

readMThd
   Read the header chunk from MIDI binary file.

readMTrk
   Read a track chunk from MIDI binary file. Answer its length.

readOnto: eventList
   Read a MIDI file

readTrackOnto: anEventList
   Read a track of MIDI events from my stream into anEventList

private

getVarLen
   Combine 1 or more input bytes from my stream into a variable length item

initialize-release

close
   Close the stream, device, or whatever.

MetaClass:         MIDIFileVoice class

instance creation

newOn: fnam
   

examples

midiFileExample
   MIDIFileVoice midiFileExample