my latest project for my Bela Pepper

Ive been playing with Tim Exile's Endless app over the last few days, and I wanted to sync it with my other gear, both eurorack and non-euroack.

Endlesss transmits Ableton Link over Wifi...
so simple plan..... create a patch for my Bela Pepper, that listens to Ableton Link, and transmits midi start,stop and clock (transport is important to get 'bars' starting on time) , and also to output clock and transport over CV.

the CV output is spread around my case, to sync sequencers and things like MI Marbles.
midi is sent over usb (device) to my iConnectivity mioXM, which then goes out all my other midi devices, in particular an Octatrack which i use for re-sampling Endlesss.

Im actually really amazed at how good the sync is... even without any delay compensation.

note: audio IO from the iPhone is taken care of by an Expert Sleepers ES-8 into the modular, and also distributed to my other external hardware.

clip of it working:

source code:
https://github.com/TheTechnobear/BelaPatches/tree/dev/pepper/c%2B%2B/linkbridge

note: it could easily be adapted for Bela or Bela Salt.
its a simple matter of pin assignment which was held at top of render.cpp