Sync'ing to bars

Hello again. I’ve wrapped a bunch of live_loops in “on” blocks so I can easily toggle them on and off. However, I would like to set it up in a way that after I toggle and hit run, it waits for the next bar (e.g. every 4 beats) before playing. I thought sync’ing to a live loop with cue followed by sleep 4 would work, however, this changes the timing of the loop. Is there some way I can achieve this?

1 Like

Can you post the code you have do far?

Does the loop you want to sync have sleep commands in it?
I usually make a ‘metronome’ loop that cues its own tick value, so all other loops can sync to that without needing any sleep.

Edit:
You can also set up the metronome loop to send individual triggers to loops.

Hi @aen1gma,

have a look if this helps in your situation:

Cheers guys. This worked by simply sync’ing to a live_loop that contained nothing but a sleep 4. I’m not even sure what I did wrong the first time… I must’ve been overthinking it :upside_down_face:

@Martin I also found the following in your code snippet which worked better than my approach for toggling loops on and off

stop if run_hiht == 0