ITUR

Map Range

Converts a value from one range to another, for example a 0-1 signal into a strength from 0.3 to 2.2.

What it is for

The node to put between a signal and a setting: it decides where the setting sits at rest and how far it goes at full signal. Works the same for a hand gesture, an audio band, a particle's age or a distance.

How it works

The node locates Value between From Min and From Max, then outputs the point at the same place between To Min and To Max: Value at From Min gives To Min, Value at From Max gives To Max. With Clamp, values outside the From range are held at the ends; without it the line carries on beyond To Min and To Max. Smoothstep and Smootherstep ease the start and the end of the travel, and always hold the ends. In a chain that feeds a force, the node is computed for each particle, so a per-particle source upstream (Particle Info, Noise) gives a per-particle result. In the inputs read once for the whole system (Time Scale, Appearance, effects) it gives one number, and per-particle sources count as 0 there.

Connections

Plug the signal into Value: a Hand or Audio output, a Wave, Particle Info > Speed or Life Ratio, a distance from Vector Math. The Result output goes into any number input: a force's Strength, the Particle System's Time Scale, an effect's Strength.

Settings

SettingWhat it doesDefault
ValueThe incoming signal to convert.0.5
From MinIncoming value that gives To Min: the low end of what the signal really does.0
From MaxIncoming value that gives To Max: the high end of what the signal really does. Keep it different from From Min.1
To MinResult when the signal is at From Min: the resting value of the setting.0
To MaxResult when the signal is at From Max. It can be lower than To Min: the setting then goes down when the signal goes up.1
InterpolationHow the result travels between To Min and To Max. Linear: in proportion to the signal. Smoothstep: soft start and soft arrival. Smootherstep: the same, softer still at both ends.
  • Linear - Standard linear remapping
  • Smoothstep - Hermite S-curve (smooth ease in/out)
  • Smootherstep - Perlin 5th-order polynomial (extra smooth)
ClampOn: the result never leaves the To Min - To Max range. Off: a signal beyond the From range pushes the result beyond it. Acts in Linear only; the two smooth modes always clamp.

Outputs

Result

Tips

See also

MathMonitorHandAudio Analyzer