Is there a way to code a live loop so it syncs to another loop only on the first time through?
I’m thinking of doing some experiments in polymeters – different numbers of beats in each loop, but the duration of a single beat is the same across the board.
So I want them to start together, but not resync after the first time through.
Thanks!
Hello!
quite not understand what are you trying to achieve, but to answer:
Is there a way to code a live loop so it syncs to another loop only on the first time through?
R// yes, example:
counter = 0
live_loop :loop_one do
play 60
if counter == 1 then
cue :test
end
counter+= 1
print counter
sleep 1
end
live_loop :loop_two, sync: :test do
play 80
sleep 0.9
end
to make them sound “out of sync” you will need to play with the sleep time.
does that answer what are you trying to achieve?
1 Like
Yes, that would do it. Thanks!
1 Like
No need for the counter and the cue, this will do the same (sync as a live_loop argument only syncs once at startup):
live_loop :loop_one do
play 60
sleep 1
end
live_loop :loop_two, sync: :loop_one do
play 80
sleep 0.9
end
3 Likes
I did not realize that. That’s exactly what I need.
Thanks!
3 Likes