modulo gesture generator / cv divider
This is the utility module I’ve always wanted, inspired by Cold Mac and MI Frames, but now as a simple crow script!
Intended use (but not limited to): Throw some gestural CV in using a knob or slow lfo, and get 4 CV out. Plug those into some inputs, et voilà, have one knob to rule 4 parameters! Great tool to add expressivity to any patch.
Input 1: Gesture in
Input 2: Transpose in
Output 1-4: Gestures out, folded 1 to 4 times.
Here’s a visualization, which I admit took me longer to make than writing the actual script
Audio demo, remainders modulating qpas, felt cute, might delete later.
- Monome crow
Doesn’t need norns nor computer while running.
Upload the tiny script below to your crow. Not in Bowery yet.
--- Remainders (version 0.1) -- modulo gesture generator/cv divider -- Input a voltage and get 4 folded outputs based on a simple modulo operation. Perfect for your one knob to rule them all. -- in 1: Gesture (CV) in (Great for knobs/joysticks) -- in 2: Transpose in (Great for quantised melodies) -- out 1-4: Voltages being folded 1 to 4 times, top to bottom. eg. Output 4 has modulo of 2 meaning it recents to 0V with every 2V increment meaning it folds 4 times. function init() input.mode( 'stream', 0.01 ) for n=1,4 do output[n].slew = 0.01 end end input.stream = function(v) transpose = input.volts for n=1,4 do remainder = v % (10/(n+1)) output[n].volts = math.min(remainder + transpose, 10) end end