b1e27f9f344aec6da656767638c25fefb797311f
1 from MidiToText
import MidiToText
4 This is an example that uses the MidiToText eventhandler. When an
5 event is triggered on it, it prints the event to the console.
10 # non optional midi framework
18 midi
.note_on(channel
=0, note
=0x40)
21 midi
.note_off(channel
=0, note
=0x40)
24 # non optional midi framework
26 midi
.end_of_track() # not optional!