Soft switch between three Values with remaining in Each for some time

hey folks,
i want to switch between three values (0, 1, 2) with a soft transitition and staying in each value for a little bit of time.
i tried it with a SWITCH with a LFO-CHOP and it’s Wave’s Type, but naturally I can only create something between to values. also with a math-chop after.
i made a professional draft to illustrate the desired curve:

Hi @oonz,

fun one :slight_smile:

use the S Curve CHOP to create the initial shape of the step. Now also create as many channels as you have steps - in your example this would be 4.
As the S Curve CHOP has a To Range parameter, you can use these to have each channel have a min and max value that increases by 1 for each channel. The torange1 parameter would take the expression me.chanIndex while the torange2 parameter would take the expression 1+me.chanIndex.

Now Shuffle them into a single channel and append a Limit CHOP where you set the type parameter to “Zigzag” and choose the appropriate maximum. This could also be automated with the expression max(me.inputs[0][0].vals)/2

Another way could be using the Pattern CHOP and choosing as Type “Step” and setting the Number of Steps parameter to “4”. Pass this into the Limit CHOP as before and now append a Filter CHOP where the Time Slice parameter on the Common page is toggled “off”. You now have control over the curve via Filter Type and Filter Length.

Either of these 2 approaches can now be used together with a Lookup CHOP to drive your Switch.

Hope this helps
Markus

1 Like