Beginning Help with OSC to different machines

Hi,

I am able to run the following program when I send OSC to localhost, but when I try to split the code so that a different machine is receiving on the same network nothing happens? Both machines are Macs Monterey 12.1, the receiving OSC from external machine was checked off and the firewall was off.

#Machine 1
use_osc "10.15.103.140", 4560
use_synth :prophet

live_loop :send do
  n = rrand_i(:c4, :c6)
  d = 1
  v = 0.5
  osc "/play",n,d,v
  sleep d
end
#Machine 2
live_loop :receive do
  use_real_time
  n,d,v = sync "/osc*/play"
  play n, release: d, amp: v
end

@gsaraydarian - which version of Sonic Pi are you using?
(Also, I’ve taken the liberty of formatting your code - if you enclose it with a line before and after that both have three backticks on them ``` the code receives nice indenting and colour highlighting).

Thank you so much! I was wondering how to format that. I’m using 3.3.1

When you say “receiving OSC from external machine was checked off” - do you mean the box was not ticked? Both checkboxes in the networking preferences area need to be ticked on in order for the remote OSC to work…

Both boxes were checked in the networking preferences area.
Thanks!

Would you be willing to send us the contents of the Sonic Pi log files through a ticket on our GitHub issues page? They’re found at ~/.sonic-pi/log

Will do, thanks so much!

1 Like