Range

Node Documentation

Maps a numeric value to a different range.

Inputs

payload number
The payload must be a number. Anything else will try to be parsed into a number and rejected if that fails.

Outputs

payload number
The value mapped to the new range.

Details

This node will linearly scale the received value. By default, the result is not constrained to the range defined in the node.

Scale and limit to target range means that the result will never be outside the range specified within the target range.

Scale and wrap within the target range means that the result will be wrapped within the target range.

Scale, but drop if outside input range means that the result will be scaled, but any inputs outside of the inout range will be dropped.

For example an input 0 - 10 mapped to 0 - 100.

modeinputoutput
scale
12
120
limit
12
100
wrap
12
20
drop
12
(no output)