|
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: |
Answered by
r1yk
Oct 31, 2024
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) |
0 replies
Answer selected by
rdoursenaud
|
Thanks for your help |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: