Hi
I have been working on a setup where I send an osc message from a DAW to Sonic Pi for each first beat in a bar. This works fine but I have a syncing issue. What I hope to do is to play 45 one the first beat, 47 on the second, 48 on the third and 52 on the fourth. However this always ends up having 52 as the first beat. I know there is something I am missing here but I would really appreciate if someone can enlighten me. Thanks
live_loop :firstbeat do
use_real_time
a = sync "/osc*/firstbeat"
end
live_loop :t1, sync: :metro do
notes = (ring 45,47,48,52)
note = notes.tick
puts note # play comes here...
sleep 0.5
end