3dSynth

Docs / SynthBlocks

Open in the interactive docs reader

Map Range

Remaps a value from one numeric range to another. The most-used math block — essential for turning variables into useful dimensions.

Block

Interactive preview is available in the interactive reader.

Parameters

input
The value to remap. Usually a Variable block (normZ, t, etc.).
from min
Lower bound of the input range.
from max
Upper bound of the input range.
to min
Lower bound of the output range.
to max
Upper bound of the output range.

How it works

Map Range performs linear interpolation. When the input equals "from min", the output equals "to min". When the input equals "from max", the output equals "to max". Values between are scaled proportionally.

Examples

InputFromToEffect
normZ0–110–25Radius from 10 mm (bottom) to 25 mm (top)
normZ0–125–10Radius from 25 mm (bottom) to 10 mm (top) — inverted
normZ0–1900–2400Speed from 900 to 2400 mm/min over height
t0–10.8–1.2Flow varies along each loop