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

clamp~ Reference

Clip an input to a range within an upper and lower bound.

clamp~

Inlets

Input [auto]

The input to be clipped.

Lower Bound [auto]

Sets the lower bound of the clip.

Upper Bound [auto]

Sets the upper bound of the clip.

Outlets

Clipped Output [signal]

The clipped output.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

in1 [auto]

The input to be clipped.

in2 [auto]

Sets the lower bound of the clip.

in3 [auto]

Sets the upper bound of the clip.

reset [bang] (default: 0)

Reset inlets to default values.

See Also

Name Description
wrap Wrap input to a range within an upper and lower bound
wrap~ Wrap input to a range within an upper and lower bound
fold Fold input to a range within an upper and lower bound
fold~ Fold input to a range within an upper and lower bound