sonic-pi-tool
sonic-pi-tool copied to clipboard
OSC not working
Hi,
Sonic Pi version 3.3.1
The simple OSC receiver code that works flawlessly in the Sonic Pi GUI does not work while using the tool:
live_loop :receive_sequence do
use_real_time
seq = sync "/osc*/gen/sequence"
s = sync "/osc*/gen/steps"
set :sequence, seq.zip(s)
end
The port used by the client for sending messages is 4560 and as per the startup logs, the same port is used by the cli tool:
OSC cues port: 4560
- OK
If I understood correctly, then this issue is common as per: https://in-thread.sonic-pi.net/t/sonic-pi-headless-doesnt-receive-osc-cues/2171 https://github.com/emlyn/sonic-pi-tool/issues/19
Is there a current workaround for this? Since the issues above are related to older SP versions.
Since this commit in July 2021, programs would need to look into ~/.sonic-pi/log/daemon.log
for lines similar to the following:
[2022-09-17 10:27:08] log: UTF-8, UTF-8, Ports: {:server_port=>35516, :gui_port=>35517, :scsynth_port=>35518, :scsynth_send_port=>35518, :osc_cues_port=>4560, :tau_port=>35519, :listen_to_tau_port=>35523}