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).
- 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
The value you want to map
Input Range
The minimum of the old range
The maximum of the old range
Output Range
The minimum of the new range
The maximum of the new range
OUTPUT PORTS
Result of the mapping