Scriptnode: how to create and " overlap" switch
-
How would I go about creating a switch that keeps bypass nodes on instead of turning one on, and every other one off?
example: if my xfader is at 1, then only 1 softbypass is on, if at 2, then 2 are on, etc...
I tried using the "overlap" mode but it does not seem to work
-
Actually that's a good and simple request with a few applications (eg. adding multiple phaser stages etc).
I've added a
Threshold
mode to thecontrol.xfade
node for this behaviour.It checks whether the input is bigger than
Index / numElements
and returns either 1 or 0, so it starts sending out 1 values to the targets when you increase the input for the exact behaviour you described. -
@Christoph-Hart thank you!