Hey, my first post! I’m trying to sync my live_loops using “sync:” in the opts of the live_loop itself. It works for simple live_loops, like drums. I can change “stop” to “#stop” on the fly and the loops start playing after 1 bar. However, my melody, containing “3.times do” etc. doesn’t start when I place the # before the stop during live coding. To be more precise, if I start with “stop” and I change it on the fly to “#stop”, it will start playing. But if I stop it again, refresh, and then #stop, refresh, it doesn’t start playing. How can I make this work? Thanks in advance for your help!
use_bpm 120
# the metronome contains a bleep sound to indicate the moment of the "cue"
live_loop :metronome do
sleep 4
cue :clock
play 84, amp: 0.3
end
# this is the main melodie
live_loop :melody, sync: :clock do
#stop
with_fx :reverb, mix: 0.5, room: 0.9 do
use_synth (ring :prophet, :saw).tick
3.times do
play :C4, cutoff: rrand(60,80)
sleep 0.5
play :G3, cutoff: rrand(60,90)
sleep 0.5
play :C4, cutoff: rrand(60,70)
sleep 0.5
play :Gs3, cutoff: rrand(60,80)
sleep 0.25
play :Gs3, cutoff: rrand(70,100)
sleep 0.25
end
1.times do
play :c4, cutoff: rrand(60,80), release: 1
sleep 0.5
play :g4, cutoff: rrand(60,90), release: 1
sleep 0.5
play :c4, cutoff: rrand(60,70), release: 1
sleep 0.5
play :gs3 + 7, cutoff: rrand(80,100), release: 1
sleep 0.5
end
end
end
# drums
live_loop :kick, sync: :clock do
#stop
sample :bd_haus
sleep 1.5
sample :bd_haus
sleep 1
sample :bd_haus
sleep 1
sample :bd_haus
sleep 0.5
end
live_loop :tom, sync: :clock do
#stop
sample :drum_tom_lo_soft
sleep 0.5
end
live_loop :snap, sync: :clock do
#stop
sleep 1
sample :perc_snap
sleep 1
end