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
| ID | x |
|---|---|
| Signal | control · control rate |
| Default | 0 |
| Coercion | Implicit |
Outputs
Result
| ID | y |
|---|---|
| Signal | control · control rate |
| Coercion | Implicit |
Parameters
In
Minimum of the effective source range.
| ID | inMin |
|---|---|
| Type | float |
| Control | slider |
| Range or Options | -1000000 to 1000000, step 1 |
| Default | 0 |
In
Maximum of the effective source range.
| ID | inMax |
|---|---|
| Type | float |
| Control | slider |
| Range or Options | -1000000 to 1000000, step 1 |
| Default | 1 |
Out
Minimum emitted value in the locked target domain.
| ID | outMin |
|---|---|
| Type | float |
| Control | slider |
| Range or Options | -1000000 to 1000000, step 1 |
| Default | 0 |
Out
Maximum emitted value in the locked target domain.
| ID | outMax |
|---|---|
| Type | float |
| Control | slider |
| Range or Options | -1000000 to 1000000, step 1 |
| Default | 1 |
Clamp Output
Constrains the output to the selected destination range.
| ID | clamp |
|---|---|
| Type | bool |
| Control | toggle |
| Default | true |
Details
| 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) |
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.