Computes t = (In - InMin) / (InMax - InMin) and outputs OutMin + (OutMax - OutMin) * t. It is the adapter for connecting nodes whose value units do not match.
- Defaults are InMin 0 / InMax 1 / OutMin 0 / OutMax 1 (= passes through unchanged)
- The Clamp toggle (default ON) limits t to 0-1. With it OFF, the line keeps extending beyond the input range
- Setting OutMin > OutMax gives an inversion
When the difference between InMax and InMin is less than 1e-6, t is treated as 0 and the output is fixed to OutMin.
Input ports
| Port ID | Type |
In | float |
InMin | float |
InMax | float |
OutMin | float |
OutMax | float |
Output ports
| Port ID | Type |
Remapped | float |
Scriptable members
| Path | Type |
inInput | float |
inMinInput | float |
inMaxInput | float |
outMinInput | float |
outMaxInput | float |
clamp | bool |
Synapse Apps (scripting)
await synapse.modules.create({ type: "Remap" })