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

clip~ Reference

Limit signal amplitude

clip~

Description

Use the clip~ to constrain input signals between two specified values.

Examples

Output is a clipped version of the input

Arguments

minimum [float]

Optional

Initial minimum limit for the range of the output signal. If no argument is supplied, the minimum limit is initially set to 0. If a signal is connected to the middle inlet, the corresponding argument is ignored.

maximum [float]

Optional

Initial maximum limit for the range of the output signal. If no argument is supplied, the maximum limit is initially set to 0. If a signal is connected to the middle inlet, the corresponding argument is ignored.

Attributes

Common Box Attributes

Messages

int

Arguments

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

Arguments

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.

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.

See Also

Name Description
<~
>~
trunc~