ajout install.txt : comment installer fluidsynth sur osx
[minwii.git] / src / mxmMidi / example_print_file.py
1 """
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.
4
5 It gets the events from the MidiInFile.
6
7 So it prints all the events from the infile to the console. great for
8 debugging :-s
9 """
10
11
12 # get data
13 test_file = 'test/midifiles/minimal-cubase-type0.mid'
14
15 # do parsing
16 from MidiInFile import MidiInFile
17 from MidiToText import MidiToText # the event handler
18 midiIn = MidiInFile(MidiToText(), test_file)
19 midiIn.read()