d8d184269473cd8eee795b706f13d16ef12b4339
1 from MidiOutFile
import MidiOutFile
4 This is an example of the smallest possible type 0 midi file, where
5 all the midi events are in the same track.
8 out_file
= 'midiout/minimal_type0.mid'
9 midi
= MidiOutFile(out_file
)
11 # non optional midi framework
19 midi
.note_on(channel
=0, note
=0x40)
22 midi
.note_off(channel
=0, note
=0x40)
25 # non optional midi framework