MapRange Op


Maps a value from one range into another.

changes a number's relative value by mapping within one range to the equivalent position in another range.
For example, given the range of 0 to 100, 50 would be halfway between. so if it were mapped to a range of 0 to 50, it would be 25 (because 25 is exactly half that range).

Edit Documentation
Full Name
  • Ops.Math.MapRange
  • Core Op - Official cables op
  • MIT
AuthorTest Patches

Example Patch maprange

Open In Editor

Youtube Video Tutorial


value (Number)

The value you want to map

Input Range

old min (Number)

The minimum of the old range

old max (Number)

The maximum of the old range

Output Range

new min (Number)

The minimum of the new range

new max (Number)

The maximum of the new range

Easing index (Number:integer )
Clamp (Number:boolean )


result (Number)

Result of the mapping

Patches using MapRange

  • Examples
  • Public
  • My Patches


improvementadjusted default valuesuser avatarpandur - 2024-01-11 13:59
featureadded option to turn off clamping, so values can be bigger then the specified min/max input rangeuser avatarpandur - 2024-02-02 15:55