Expand description
Parameter validation utilities.
These functions help ensure parameter values are safe for real-time audio processing.
Functions§
- clamp_
or_ default - Clamps a value to a range, replacing NaN/Infinity with a default.
- is_
finite - Validates that a value is finite (not NaN or Infinity).
- validate_
frequency - Validates a frequency value (positive, finite, reasonable range).
- validate_
gain - Validates a gain value (0.0 to 1.0 or higher).
- validate_
time_ ms - Validates a time value in milliseconds.