How can I play MIDI tracks created using python-midi package?
<p>I want to create MIDI tracks in a Python program and be able to play them instantly (preferably without writing to disk). I have recently discovered the package <a href="https://github.com/vishnubob/python-midi" rel="nofollow">python-midi</a> which looks great. However I haven't figured out how to play the tracks created with this package. Do I need an additional package? Help would be appreciated.</p>

<p>My solution if anyone is interested:</p>

<p>I ended up using <a href="https://github.com/olemb/mido" rel="nofollow">mido</a> for my Python MIDI API, with Pygame as the backend.
Works like a charm :)</p>

python api midi