Nodes

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

Clamp Node

Clamps the input audio or control signal between a minimum-maximum range, and thus ensures the output is fully within this range. When used with an audio signal, this technique is also called audio clipping.

Values below the range are replaced with the minimum value, while values above the range are replaced with the maximum value. This Node can also be used to select the greatest or smallest of 2 inputs. See the Remarks section below.

Inputs

Audio/Control InputThe audio or control signal to clamp into range.
Min-Control InputA control input to automate the Min setting. Can be toggled from settings.
Max-Control InputA control input to automate the Max setting. Can be toggled from settings.

Settings

MinMinimum allowed value. Values in the Audio/Control input signal below it will be replaced with this value.
MaxMaximum allowed value. Values in the Audio/Control input signal above it will be replaced with this value.

Outputs

Audio/Control OutputThe source audio/control signal with clamping (clipping) applied.

Remarks

When Max is automated, the Audio/Control input together with the Max-control input can also be used to output the greatest of these 2 inputs. Set Min to a low-enough value to avoid unintentional bottom clamping.

When Min is automated, the Audio/Control input together with the Min-control input can also be used to output the smallest of these 2 inputs. Set Max to a high-enough value to avoid unintentional top clamping.

Technical Details

When used with an audio signal input, the Clamp Node will introduce clipping distortion when the input signal reaches outside the allowed range. For limiting (or compressing) audio signals without hard clipping, use the Dynamic Compressor Node instead.

While the Audio/Control input supports multiple channels (stereo, quad, etc), Min input and Max input only support a mono control signal, and any multi-channel signals connected to them will be downmixed to mono. If multi-channel control signals are needed, use multiple Clamp Nodes with a combination of Channel Splitter Node and Channel Merger Node.

Clamping is applied to the source audio/control signal on a per-sample basis.

Was this article helpful to you? Yes No