+++ /dev/null
-from MidiOutFile import MidiOutFile\r
-\r
-"""\r
-This is an example of the smallest possible type 0 midi file, where \r
-all the midi events are in the same track.\r
-"""\r
-\r
-out_file = 'midiout/minimal_type0.mid'\r
-midi = MidiOutFile(out_file)\r
-\r
-# non optional midi framework\r
-midi.header()\r
-midi.start_of_track() \r
-\r
-\r
-# musical events\r
-\r
-midi.update_time(0)\r
-midi.note_on(channel=0, note=0x40)\r
-\r
-midi.update_time(192)\r
-midi.note_off(channel=0, note=0x40)\r
-\r
-\r
-# non optional midi framework\r
-midi.update_time(0)\r
-midi.end_of_track()\r
-\r
-midi.eof()\r