v0.1Latest

Map Range

Map Range

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

Map Range node screenshot

Inputs

Input

  • ID: x
  • Kind: control
  • Rate: control
  • Coercion: Implicit
  • Default: 0

In Min

  • ID: inMin
  • Kind: control
  • Rate: control
  • Coercion: Implicit
  • Default: 0

In Max

  • ID: inMax
  • Kind: control
  • Rate: control
  • Coercion: Implicit
  • Default: 1

Out Min

  • ID: outMin
  • Kind: control
  • Rate: control
  • Coercion: Implicit
  • Default: 0

Out Max

  • ID: outMax
  • Kind: control
  • Rate: control
  • Coercion: Implicit
  • Default: 1

Outputs

Result

  • ID: y
  • Kind: control
  • Rate: control
  • Coercion: Implicit

Parameters

Clamp Output

  • ID: clamp
  • Type: bool
  • Control: toggle
  • Default: true
  • Description: Constrain output to [outMin, outMax] range

Notes

  • Canonical ID: math.mapRange
  • Category: math
  • Runtime Surface: control
  • Runtime Targets: control-main-thread
  • JUCE Early Access: Supported
  • Early Access Note: Native-supported in the plugin for the current catalog/runtime support contract.
  • Formula: y = outMin + ((x - inMin) / (inMax - inMin)) × (outMax - outMin)
  • When clamp is enabled, the output is constrained to the destination range after remapping.