rtmidi-python
rtmidi-python copied to clipboard
Python RTMidi misses Start MIDI message
New issue on my Rpi 3b+ :( I'm using the RTMidi Python lib to monitor incoming midi messages from a midi keyboard, plugged using USB. I can see all incoming messages (notes, stop, continue..). But not the "Start" ones. This is really strange because on my mac laptop I've got no problem seeing all the messages using the exact same code:
midi_in = rtmidi.MidiIn()
midi_in.open_port(1)
while True:
message= midi_in.get_message()
if message:
print message[0]
If anyone has a hint regarding this it would awesome!! Thanks :)
To keep everyone posted on this issue:
I tried "aseqdump" in the terminal and I receive all MIDI messages including the start one. So it definitely seems the issue is in the RTMidi midi_in.get_message() ..
It filters them out by default. See: https://spotlightkid.github.io/python-rtmidi/rtmidi.html?highlight=ignore#rtmidi.MidiIn.ignore_types