Hi Yogav
I think this project I did some time ago might be relevant for you.
The other problem you may encounter depends on the Raspberry Pi you want to use.
Unfortunately, the version of Sonic Pi included in the latest Raspbian Buster (necessary of you are using a Pi4) does NOT support OSC or midi messages, despite saying that it is version 3.1
It was not produced by Sam Aaron, and it is missing the code resources (erlang and osmid) reqiuired for these protocols to work. You either have to use Sonic Pi 3.0.1 on Rasbian Stretch on a Pi3 or Pi2, or you have to build Sonic PI from source on Raspbian Buster if you want to use a Pi4.
1 Like