v0.1Latest

Map Range

Linearly maps a value from one range to another.

Remaps a control value from one range to another, with optional clamping for bounded modulation.

Inputs

Input

IDx
Signalcontrol · control rate
Default0
CoercionImplicit

Outputs

Result

IDy
Signalcontrol · control rate
CoercionImplicit

Parameters

In

Minimum of the effective source range.

IDinMin
Typefloat
Controlslider
Range or Options-1000000 to 1000000, step 1
Default0

In

Maximum of the effective source range.

IDinMax
Typefloat
Controlslider
Range or Options-1000000 to 1000000, step 1
Default1

Out

Minimum emitted value in the locked target domain.

IDoutMin
Typefloat
Controlslider
Range or Options-1000000 to 1000000, step 1
Default0

Out

Maximum emitted value in the locked target domain.

IDoutMax
Typefloat
Controlslider
Range or Options-1000000 to 1000000, step 1
Default1

Clamp Output

Constrains the output to the selected destination range.

IDclamp
Typebool
Controltoggle
Defaulttrue

Details

Canonical IDmath.mapRange
Categorymath
Runtime Surfacecontrol
Runtime Targetscontrol-main-thread
JUCE Early AccessSupported
Early Access NoteNative-supported in the plugin for the current catalog/runtime support contract.
Formulay = outMin + ((x - inMin) / (inMax - inMin)) × (outMax - outMin)

Notes

  • When clamp is enabled, the output is constrained to the destination range after remapping.
  • The first output connection locks the Out range to its destination domain and unit.
  • Compatible fan-out emits direct domain values without a second edge conversion.