Open Help

wrap

Wrap input to a range within an upper and lower bound

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
This website uses cookies
Clicking "Accept" means you consent to your data being processed and you'll let us use cookies and other technologies to process your personal information to personalize and enhance your experience. Click "Close" to deny consent and continue with technically required cookies that are essential for the website to function.