Offset and automated value
I have a graphic modulator automating a Switch N-1, this is sequencing the output of 8 different audio lanes. I added an offset knob to that to take the entire sequence up or down. The problem is that when the offset knob is all the way up or all the way down, the Switch N-1 value is always 1 or 8 (the minimum or maximum).
Is it possible somehow to have the value going up to the maximum once it pass through the minimum (and viceversa), like in a cycle way?
Here's a zip with a video showing a little more of the context.
Any help is much appreciated, thank you!
I think what you need is the mathematical equivalent of MOD. Take the reminder of the integer division. It’s implementable with the math modules…
The easiest way to do it is to use a Quantize and a Subtract module. Quantize will give you the "div" and subtracting it from the input value will give you the "mod" value. You might need to scale the input signal for it to work correctly in your patch.