Clamp a bipolar value
import { Bipolar } from 'https://unpkg.com/ixfx/dist/data.js';Bipolar.clamp(-1); // -1Bipolar.clamp(-1.1); // -1 Copy
import { Bipolar } from 'https://unpkg.com/ixfx/dist/data.js';Bipolar.clamp(-1); // -1Bipolar.clamp(-1.1); // -1
Throws an error if bipolarValue is not a number or NaN.
bipolarValue
Value to clamp
Clamped value on -1..1 scale
Clamp a bipolar value
Throws an error if
bipolarValue
is not a number or NaN.