1. Home
  2. Docs
  3. Nodes
  4. Control Lines
  5. Sign Node

Sign Node

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 0.1, output will remain 0 until input goes above 0.1 (or below -0.1 for negative values).


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).

Technical details

This node actually applies a highly condensed linear transformation. Extremely small values may produce non-zero output between -1 and 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).

Was this article helpful to you? Yes No