# Need help with sync in loops

**URL:** <https://in-thread.sonic-pi.net/t/need-help-with-sync-in-loops/795>\
**Category:** \[P\] Patreon Support\
**Created:** [February 21, 2018, 8:28pm UTC](https://in-thread.sonic-pi.net/t/need-help-with-sync-in-loops/795 "2018-02-21T20:28:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Martin](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/martin/32/157_2.png) [@Martin](https://in-thread.sonic-pi.net/u/Martin)\
**Post date:** [February 21, 2018, 9:11pm UTC](https://in-thread.sonic-pi.net/t/need-help-with-sync-in-loops/795/4 "2018-02-21T21:11:46Z")

</div>

Yes, exactly, you will have to wait one beat (unless you let `:metro` sleep shorter).

You might want to have a look at this discussion which also discusses this behaviour.

> [@Music now stops unexpectedly (possibly due to updating from v2.11.1 to v3.1?)](http://in-thread.sonic-pi.net/t/music-now-stops-unexpectedly-possibly-due-to-updating-from-v2-11-1-to-v3-1/716/5):
>
> Hi, I would suggest reducing the size of the program until it starts working again - and then at that point you might start to get an idea of where it goes wrong. If you’re able to create a short example of a bug I’d be very happy to look into fixing it. Additionally, be aware that between v2 and v3 cue and sync were rewritten to make them fully deterministic. In v2 and before they had race conditions which meant that the behaviour could change with successive runs. It’s quite likely that thi…

Use 3 backticks at the beginning and at the end of a block of code to highlight it. A single backtick is for `inline code`.

---

_[View the full topic](https://in-thread.sonic-pi.net/t/need-help-with-sync-in-loops/795)._
