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.
|Audio/Control Input||The audio or control signal to clamp into range.|
|Min-Control Input||A control input to automate the Min setting. Can be toggled from settings.|
|Max-Control Input||A control input to automate the Max setting. Can be toggled from settings.|
|Min||Minimum allowed value. Values in the Audio/Control input signal below it will be replaced with this value.|
|Max||Maximum allowed value. Values in the Audio/Control input signal above it will be replaced with this value.|
|Audio/Control Output||The source audio/control signal with clamping (clipping) applied.|
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.
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.