I got inspired by a video explaining the Subharmonicon and how it uses polyrythms and subharmonics, so I tried reproducing some of it’s functionality in Sonic Pi. So far, I have the sequencers, some of the the rhythms, the mixers, the VCOs/subs, and still need to add the envelopes and filters.
It’s a lot of fun to hook up my novation control to it, and just fiddle with all the settings!
That’s a snippet of code that I reuse in sketches that hook into the midi signals from my Launch Controller. It has a bunch of knobs and a few buttons/pads. In the :midi_knobs loop I’m reassigning those values whenever a new midi signal comes in from the knobs:
use_real_time
chan, val = sync "/midi:launch_control:0:1/control_change"
param[chan] = val/127.0
This way, I can store all of the latest values in :param and access them anywhere since its a global object