-
I can't get an input port to fire a callback, and I can't see how this is being supported in the code. Is it supposed to? The equivalent rtmidi code works OK. This does not work on Windows 10, Linux 24.04, Python 13 or Python 12:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It looks like your callback function probably needs to be updated to take a single argument for the message it will receive each time it's called. From the docstring for
You could quickly test with something like: def input_callback(msg):
print("MESSAGE RECEIVED", msg) |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help |
Beta Was this translation helpful? Give feedback.
It looks like your callback function probably needs to be updated to take a single argument for the message it will receive each time it's called. From the docstring for
mido.open_input
:You could quickly test with something like: