I am in the process of moving a Windows 10 implementation to a Raspberry Pi 5 running OSC in node (v 1.27.1). I am using McLaren RtpMidi and all is good communicating to the workstation except for when I am sending this message (this worked in Win 10):
address: /program
preArgs:
[
1,
0
]
target: midi:oscToDaw
(ERROR, MIDI) Traceback (most recent call last):
File "/home/USER/OSC/open-stage-control_1.27.1_node/server/python/midi.py", line 300, in
send_midi(*msg)
File "/home/USER/OSC/open-stage-control_1.27.1_node/server/python/midi.py", line 285, in send_midi
outputs[name].send_message(m)
File "src/_rtmidi.pyx", line 1104, in rtmidi._rtmidi.MidiOut.send_message
File "src/_rtmidi.pyx", line 220, in rtmidi._rtmidi._cb_error_func
File "src/_rtmidi.pyx", line 417, in rtmidi._rtmidi._default_error_handler
ValueError: MidiOutAlsa::sendMessage: event parsing error!
WHERE AS NOTE CAN SEND.
address: /note
preArgs:
[
1,
0
]
target: midi:oscToDaw
Any suggestions?
Thank you
Yes, follow the MIDI configuration guide for "Other systems / Node" .
Sorry, I didn't read properly, I'll check it out and keep you posted.
Could you please check rtmidi's version:
python3 -c "import rtmidi; print(rtmidi.__version__)"
and ALSA's:
cat /proc/asound/version
Thanks for the reply.
python3 -c "import rtmidi; print (rtmidi.version)"
1.4.7
cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k6.6.51+rpt-rpi-2712.
Thanks. You'll need to install a more recent version of rtmidi as the minimal version required is 1.4.9, I should mention that in the docs.
Ok, I will try update in rtMidi
Thank you.
sudo apt install python3-rtmidi --upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-rtmidi is already the newest version (1.4.7-1+b4).
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
Not available yet via apt on Pi 5. I will wait for apt to get there for my articulation switching.
Thanks.
Going to try to install an additional version of python etc.. that is managed via the base install
Took a bit of mucking about to get an additional version of python (3.13) with a version of rtmidi that meets OSC's requirements.
Seeing midi at the target, now to solve additional issues that in my setup/environment.
Your help and OSC in general is very much appreciated.
Thank you.
1 Like