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

wrap~ Reference

Wrap input to a range within an upper and lower bound

wrap~

Arguments

low [auto]

Optional

Sets the lower bound of the wrap.

high [auto]

Optional

Sets the upper bound of the wrap.

Inlets

x [auto]

The input to be wrapped.

low [auto]

Sets the lower bound of the wrap.

high [auto]

Sets the upper bound of the wrap.

Outlets

out1 [signal]

The wrapped output.

Dynamic Attributes

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

high [auto]

Sets the upper bound of the wrap.

low [auto]

Sets the lower bound of the wrap.

reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

x [auto]

The input to be wrapped.

See Also

Name Description
wrap Wrap input to a range within an upper and lower bound
clip Clip an input to a range within an upper and lower bound.
clip~ Clip an 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