Sync between live loops

Hello @Alb85,
For syncing threads/loops together, the function you are after is sync.
See the following sections in the tutorial for details:
Sonic Pi - Tutorial (examples show usage with in_thread and loop, but the same applies to live_loops).
Details also in the app’s Lang help section in the reference page for the sync function.

For more explanations and examples of how and when to use sync in various ways, this topic is also a good start:

You might also want to look into get and set for communicating data between threads in such a way that changing values in one particular place always makes the other threads see those values in the way you expect, rather than changing in unexpected ways:
See:

(and again, more details in the Lang help section in the app under the pages for set and get).

Let us know if you have further questions :slight_smile: