Knob that controls step modulator in increments of 1, 2 ,4 ,8 ,16, 32?
-
Any suggestions on best method for creating a knob that controls 'NumSteps' on the step modulator, that works in a non-linear fashion? So rather than 1,2,3,4,5,6 etc, the options are 1, 2, 4, 8, 16, 32
Thank you
-
@mjc123 You can use an array that contains your steps, and use the knob as the array index to grab the values.
const steps = [1, 3, 5, 7, 9]; inline function onKnobControl(component, value) { local stepValue = steps[value]; }
-
@mjc123 as Dave said, or if the mathematical relation is always
2^n−1
, thenlocal step = Math.pow(2, value-1);