SpotlightKid / python-rtmidi

Python bindings for the cross-platform MIDI I/O library RtMidi
https://spotlightkid.github.io/python-rtmidi/
Other
356 stars 65 forks source link

[Question] Is there anyway to read .midi file content using python-rtmidi? #122

Closed MuelNova closed 1 year ago

MuelNova commented 1 year ago

Hey, I searched for a while and didn't see the solution using python-rtmidi (maybe it's because I'm bad at searching)

What I want to do is to read .midi file's content and to get all of the events, notes or ticks, and then use midioutput to make something like autoplay.

Is there any possible way to do that using python-rtmidi?

ElliotGarbus commented 1 year ago

You might prefer a higher level construct that uses python-rtmidi as a back-end. I like mido. Read: https://mido.readthedocs.io/en/latest/

MuelNova commented 1 year ago

Yes, this is working, thank you!