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

fold Reference

Fold input to a range within a low and high output value

fold

Examples

Constructors

  • { arguments={input, min, max}, inlets={} }
  • { arguments={min, max}, inlets={input} }
  • { arguments={max}, inlets={input, min} }
  • { arguments={}, inlets={input, min, max} }

Inlets

input

Typefloat

input to fold

min

Typefloat

lower bound

max

Typefloat

upper bound

Attributes

Common Box Attributes

See Also

Name Description
clamp
scale
wrap