Mido - MIDI Objects for Python¶
Mido is a library for working with MIDI messages and ports. It’s designed to be as straight forward and Pythonic as possible.
>>> import mido
>>> output = mido.open_output()
>>> output.send(mido.Message('note_on', note=60, velocity=64))
>>> with input as mido.open_input('SH-201'):
... for msg in input:
... print(msg)
>>> msg = mido.Message('program_change', program=10)
>>> msg.type
'program_change'
>>> msg.channel = 2
>>> msg2 = msg.copy(program=9)
<program_change message channel=2, program=9, time=0>
The latest version of the source code is available at: http://github.com/olemb/mido/
Community:
IRC channel #mido on freenode.net
Contents: