4fcd5316744aefdae69e44494ac18a168de9e5c7
2 This is an example that uses the MidiToText eventhandler. When an
3 event is triggered on it, it prints the event to the console.
5 It gets the events from the MidiInFile.
7 So it prints all the events from the infile to the console. great for
13 test_file
= 'test/midifiles/minimal-cubase-type0.mid'
16 from MidiInFile
import MidiInFile
17 from MidiToText
import MidiToText
# the event handler
18 midiIn
= MidiInFile(MidiToText(), test_file
)