A newer version of Max is available. Click here to access the latest version of this document.

clip~

Limit signal amplitude

Description

clip~ constrains input signals between two specified values.

Arguments

Name Type Opt Description
minimum and maximum (2 floats) list opt Initial minimum and maximum limits for the range of the output signal. If no argument is supplied, the minimum and maximum limits are both initially set to 0. If a signal is connected to the middle or right inlet, the corresponding argument is ignored.

Messages

int minimum/maximum [int]
The middle and right inlets can receive a float or int instead of a signal to set the minimum and/or maximum.
float minimum/maximum [float]
The middle and right inlets can receive a float or int instead of a signal to set the minimum and/or maximum.
signal In left inlet: Any signal, which will be restricted within the minimum and maximum limits received in the middle and right inlets.

In middle inlet: Minimum limit for the range of the output signal.

In right inlet: Maximum limit for the range of the output signal.

Information for box attributes common to all objects

Output

signal: The input signal is sent out, limited within the specified range. Any value in the input signal that exceeds the minimum or maximum limit is set equal to that limit.

Examples

Output is a clipped version of the input

See Also

Name Description
<~ Is less than, comparison of two signals
>~ Is greater than, comparison of two signals
trunc~ Truncate fractional signal values