|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Clamping (Cross-cutting — Math) More...
Clamping (Cross-cutting — Math)
Definition in file clamp.hpp.
Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::dsp |
| namespace | sbl::dsp::math |
| Cross-cutting math used at every audio layer. | |
Functions | |
| constexpr float | sbl::dsp::math::clamp (float x, float lo, float hi) |
| x held to [lo, hi]; NaN → lo. | |
| constexpr float | sbl::dsp::math::clamp01 (float x) |
| x held to [0, 1]; NaN → 0. | |