superquadratic / rtmidi-python

Python wrapper for RtMidi
MIT License
56 stars 2 forks source link

Python RTMidi misses Start MIDI message #22

Open max-circlefade opened 5 years ago

max-circlefade commented 5 years ago

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 commented 5 years ago

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

Phalangers commented 4 years ago

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