# How to synchronize Sonic Pi from an external midi device?

**URL:** <https://in-thread.sonic-pi.net/t/how-to-synchronize-sonic-pi-from-an-external-midi-device/4833>\
**Category:** Support, Help & Resources\
**Created:** [December 21, 2020, 8:47pm UTC](https://in-thread.sonic-pi.net/t/how-to-synchronize-sonic-pi-from-an-external-midi-device/4833 "2020-12-21T20:47:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [December 21, 2020, 8:47pm UTC](https://in-thread.sonic-pi.net/t/how-to-synchronize-sonic-pi-from-an-external-midi-device/4833/1 "2020-12-21T20:47:58Z")

</div>

Hi,  
It’s something new for me. The goal is to control the bpm of sonic pi from Elektron Sample which sends midi clock.

So if you have tips or code, do not hesitate 🙂

Nicolas

---

<div class="post-metadata">

**Author:** ![soxsa](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/soxsa/32/1669_2.png) [@soxsa](https://in-thread.sonic-pi.net/u/soxsa)\
**Post date:** [December 22, 2020, 8:38am UTC](https://in-thread.sonic-pi.net/t/how-to-synchronize-sonic-pi-from-an-external-midi-device/4833/2 "2020-12-22T08:38:07Z")

</div>

@nlb I don’t know how to do this, but I’m interested in all aspects of things controlling other things. I’ve majored on SPi controlling other things so far.

I’ve been using [Cockos Incorporated | OSCII-bot](https://www.cockos.com/oscii-bot/) to good effect. It’s got a scripting language that can send/receive both MIDI and OSC. Don’t know if it can handle MIDI clock but that’s where I’d look first if I were trying to do this. Something like: receive MIDI clock, translate into an OSC message to send to SPi

One day I’d like to get tooled up to write utilities that do these kind of conversions rather than relying on tidbits from the Internet. One day.

---

<div class="post-metadata">

**Author:** ![Automageddon](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Automageddon](https://in-thread.sonic-pi.net/u/Automageddon)\
**Post date:** [December 23, 2020, 9:51am UTC](https://in-thread.sonic-pi.net/t/how-to-synchronize-sonic-pi-from-an-external-midi-device/4833/3 "2020-12-23T09:51:59Z")

</div>

Commenting just to follow this, as I’d like to try this too in the future…

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [December 23, 2020, 4:56pm UTC](https://in-thread.sonic-pi.net/t/how-to-synchronize-sonic-pi-from-an-external-midi-device/4833/4 "2020-12-23T16:56:43Z")

</div>

BTW you can bookmark posts 🙃 to follow the subject.  
As answers are not many, I guess this is not so easy as that so at this moment I give up this question. Turn off computers period has comed for me right now. See you in 2021 ! Going to learn at piano “always look on the bright side of life” and whistle !

---

<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:** [December 23, 2020, 9:34pm UTC](https://in-thread.sonic-pi.net/t/how-to-synchronize-sonic-pi-from-an-external-midi-device/4833/5 "2020-12-23T21:34:18Z")

</div>

Take care my friend. We’ll be here when you decide to come back.

Eli…
