A project that arose out of a question on the Sonic Pi in-thread group [ Ссылка ] After quite a bit of development I came up with the program which is running with a TouchOSC interface on my iPad controlling Sonic PI. Each button controls either a looping sample, a single play sample, a note or a sequence of notes, turning the target on and off, but synchronised to a metronome beat. The background pulse can also be turned on and off with the bg button. Code for this is on my gist site at [ Ссылка ]
![](https://i.ytimg.com/vi/cEz-fOEF3M0/maxresdefault.jpg)