I get the following message when running my code on Raspberry PI. It worked on MacOs though.
Code:
use_osc “localhost”,4560 #address where osc messages will be sent
#test live_loop to send osc messages
#live_loop :test do
# osc "/trigger/prophet",(ring 1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0).tick
# sleep 1
#end
use_debug true
use_osc_logging false
live_loop :playsample do
use_real_time #gives faster realtime response
a = sync "/osc*/trigger/prophet"
case a[0]
when 1.0
sample /home/pi/samples/bird1.wav
when 2.0
sample /home/pi/samples/bird1.wav
when 3.0
sample /home/pi/samples/bird1.wav
when 4.0
sample /home/pi/samples/bird4.wav
when 5.0
sample /home/pi/samples/bird5.wav
when 6.0
sample /home/pi/samples/bird6.wav
when 7.0
sample /home/pi/samples/bird7.wav
else
puts "error"
end
end
ERROR:
Runtime Error: [buffer 0, line 781] - SyntaxError
Thread death!
workspace_zero:19: unknown regexp option - p
workspace_zero:21: unknown regexp option - p
workspace_zero:23: unknown regexp option - p
workspace_zero:25: unknown regexp option - p
workspace_zero:27: unknown regexp option - p
workspace_zero:29: unknown regexp option - p
workspace_zero:31: unknown regexp option - p
/opt/sonic-pi/app/server/ruby/lib/sonicpi/runtime.rb:781:in `eval'
/opt/sonic-pi/app/server/ruby/lib/sonicpi/runtime.rb:781:in `block (2 levels) in __spider_eval'
/opt/sonic-pi/app/server/ruby/lib/sonicpi/runtime.rb:1042:in `block (2 levels) in __in_thread'