RNBO Objects & Operators fold
Open Help

fold

Fold input to a range within an upper and lower bound

Arguments

low [number]

Optional

Sets the lower bound of the fold.

high [number]

Optional

Sets the upper bound of the fold.

Inlets

x [number]

The input to be folded.

low [number]

Sets the lower bound of the fold.

high [number]

Sets the upper bound of the fold.

Outlets

out1 [number]

The folded 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 fold.

low [number]

Sets the lower bound of the fold.

reset [bang] (default: 0)

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

x [number]

The input to be folded.

See Also

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