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

Module example_print_file

source code

This is an example that uses the MidiToText eventhandler. When an event is triggered on it, it prints the event to the console.

It gets the events from the MidiInFile.

So it prints all the events from the infile to the console. great for debugging :-s

Variables [hide private]
  test_file = 'test/midifiles/minimal-cubase-type0.mid'
  midiIn = MidiInFile(MidiToText(), test_file)