rtmidi-python icon indicating copy to clipboard operation
rtmidi-python copied to clipboard

Python RTMidi misses Start MIDI message

Open max-circlefade opened this issue 5 years ago • 2 comments

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 :)

max-circlefade avatar Mar 03 '19 23:03 max-circlefade

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() ..

max-circlefade avatar Mar 04 '19 16:03 max-circlefade

It filters them out by default. See: https://spotlightkid.github.io/python-rtmidi/rtmidi.html?highlight=ignore#rtmidi.MidiIn.ignore_types

Phalangers avatar Jan 13 '20 03:01 Phalangers