Remap a value from the range [inMin, inMax] to [outMin, outMax].
remap(0.5, 0, 1, -675, 675); // 0 (center of the chart X range)remap(128, 0, 255, 0, 1); // ≈ 0.502 Copy
remap(0.5, 0, 1, -675, 675); // 0 (center of the chart X range)remap(128, 0, 255, 0, 1); // ≈ 0.502
Remap a value from the range [inMin, inMax] to [outMin, outMax].