Performs the mathematical sign function on a value (Audio or Control). That is, negative input becomes
-1, positive input becomes
1. The value
0 remains unmodified.
|Value||The value to transform.|
|Threshold||Sets the minimum distance from zero for input to count as a non-zero value. This value is exclusive. For example, if set to
|Value sign||Sign of the input value.|
Audio and Control lines (visualized with blue and purple, respectively) are both analogous to an analog signal. They can be used interchangeably, and, for example, an Audio output (blue) can be connected to a Control input (purple), or vice-versa.
Connecting a sine oscillator (with an output range of [-1, 1]) to this Node and setting Threshold to
0 will create a perfect square wave (1 sample rise time and fall time).
This node actually applies a highly condensed linear transformation. Extremely small values may produce non-zero output between
1. This aspect might change in the future, so it is ill-advised to depend on it in a project (consider using the Wave Shaper Node instead).