wrap Reference

Wrap input to a range within an upper and lower bound

wrap

Arguments

low [number]

Optional

Sets the lower bound of the wrap.

high [number]

Optional

Sets the upper bound of the wrap.

Inlets

x [number]

The input to be wrapped.

low [number]

Sets the lower bound of the wrap.

high [number]

Sets the upper bound of the wrap.

Outlets

out1 [number]

The wrapped output.

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

hot [bool] (default: false)

Trigger computation on all inlets.

Dynamic Attributes

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

high [number]

Sets the upper bound of the wrap.

low [number]

Sets the lower bound of the wrap.

reset [bang] (default: 0)

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

x [number]

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