MapRange Op
Maps a value from one range into another.
Summary (oneliner)
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).
Full Name
- Ops.Math.MapRange
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
INPUT PORTS
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 )
OUTPUT PORTS
result (Number)
Result of the mapping