Reading a MIDI file in Python

Logan picture Logan · May 29, 2010 · Viewed 35.7k times · Source

I want to be able to read events from a MIDI file in Python. I have looked for libraries, but can't find one that works with my MIDI file in windows. I do not need to do anything real time, and just want a simple library that gives me events and times. Would it be easier to write one for myself? Any help would be appreciated.

Answer

purna15111 picture purna15111 · Jan 9, 2018

There is a library called mido which is good for reading these files: https://pypi.python.org/pypi/mido/1.1.11