# Syncing across buffers?

**URL:** <https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415>\
**Category:** Support, Help & Resources\
**Created:** [May 23, 2019, 2:18pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415 "2019-05-23T14:18:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![birv2](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/birv2/32/93_2.png) [@birv2](https://in-thread.sonic-pi.net/u/birv2)\
**Post date:** [May 23, 2019, 2:18pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/1 "2019-05-23T14:18:46Z")

</div>

Probably an obvious question, but is it possible to sync loops across buffers? Or does buffer 0’s live loop not recognize buffer 1’s live loop?

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [May 23, 2019, 3:07pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/2 "2019-05-23T15:07:33Z")

</div>

I think live\_loops are accessible globally. I have done this before for programs too large for one buffer. Run live\_loops in one and access them from another. (Just make sure that any variables required in both are stored using set).

---

<div class="post-metadata">

**Author:** ![PiEaterAndPlayer](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@PiEaterAndPlayer](https://in-thread.sonic-pi.net/u/PiEaterAndPlayer)\
**Post date:** [May 23, 2019, 3:11pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/3 "2019-05-23T15:11:01Z")

</div>

I just tried it and it works.

---

<div class="post-metadata">

**Author:** ![birv2](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/birv2/32/93_2.png) [@birv2](https://in-thread.sonic-pi.net/u/birv2)\
**Post date:** [May 23, 2019, 3:25pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/4 "2019-05-23T15:25:29Z")

</div>

Thanks!

So it’s now a matter of teaching my students how to sync one loop to another.

---

<div class="post-metadata">

**Author:** ![Eli](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/eli/32/116_2.png) [@Eli](https://in-thread.sonic-pi.net/u/Eli)\
**Post date:** [May 23, 2019, 4:24pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/5 "2019-05-23T16:24:10Z")

</div>

A buffer can handle about 250 lines of code… you’re recreating Holst’s The Planets, maybe? 🙂

Eli…

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [May 23, 2019, 4:37pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/6 "2019-05-23T16:37:39Z")

</div>

I frequently run out of buffer space with my linear coded classical pieces. I usually use run\_file to overcome this.

---

<div class="post-metadata">

**Author:** ![Eli](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/eli/32/116_2.png) [@Eli](https://in-thread.sonic-pi.net/u/Eli)\
**Post date:** [May 23, 2019, 6:36pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/7 "2019-05-23T18:36:42Z")

</div>

Of course you do Robin… but I’d expect -you- to be trying to get SP to play the whole Planets Suite.

I’m simply suprised that someone who has students to teach, has the need for mutliple buffer techniques,  
most I would say, get by on single buffers.

And please note the ’ 🙂 ’ … I’m being a bit cheeky I know, but thats me 😉

Eli…

---

<div class="post-metadata">

**Author:** ![birv2](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/birv2/32/93_2.png) [@birv2](https://in-thread.sonic-pi.net/u/birv2)\
**Post date:** [May 23, 2019, 6:51pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/8 "2019-05-23T18:51:57Z")

</div>

I think that my students get confused when they have to do too much scrolling from top to bottom. They seem to like neater categories…

---

<div class="post-metadata">

**Author:** ![Eli](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/eli/32/116_2.png) [@Eli](https://in-thread.sonic-pi.net/u/Eli)\
**Post date:** [May 23, 2019, 7:02pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/9 "2019-05-23T19:02:32Z")

</div>

_ **nod** _ A perfectly reasonable answer and I hope your teaching goes well.

Eli…

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [May 23, 2019, 8:01pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/10 "2019-05-23T20:01:43Z")

</div>

Ok 😀 That would take a very long file indeed.

---

<div class="post-metadata">

**Author:** ![PiEaterAndPlayer](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@PiEaterAndPlayer](https://in-thread.sonic-pi.net/u/PiEaterAndPlayer)\
**Post date:** [May 24, 2019, 9:21am UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/11 "2019-05-24T09:21:10Z")

</div>

I find multiple buffers really useful. It allows me to split things up based on function and avoid confusing my tiny little mind.

---

<div class="post-metadata">

**Author:** ![birv2](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/birv2/32/93_2.png) [@birv2](https://in-thread.sonic-pi.net/u/birv2)\
**Post date:** [May 24, 2019, 3:08pm UTC](https://in-thread.sonic-pi.net/t/syncing-across-buffers/2415/12 "2019-05-24T15:08:35Z")

</div>

Thanks! Learning more all the time, so that usually translates to better learning for my students.
