|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Float-domain parameter mapping utilities. More...
Float-domain parameter mapping utilities.
Definition in file param.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::cc_to_float (uint8_t val) |
| Normalize MIDI CC (0-127) to [0.0, 1.0]. | |
| constexpr float | sbl::dsp::math::u16_to_float (uint16_t val) |
| Normalize 16-bit unsigned (0-65535) to [0.0, 1.0]. | |
| constexpr float | sbl::dsp::math::u14_to_float (uint16_t val) |
| Normalize 14-bit MIDI (0-16383) to [0.0, 1.0] (pitch bend, NRPN) | |
| constexpr float | sbl::dsp::math::map_linear (float t, float min, float max) |
| Linear mapping: t → min + (max - min) * t. | |
| constexpr float | sbl::dsp::math::map_quadratic (float t, float min, float max) |
| constexpr float | sbl::dsp::math::map_scurve (float t, float min, float max) |
| constexpr float | sbl::dsp::math::map_inv_quadratic (float t, float min, float max) |
| float | sbl::dsp::math::map_exponential (float t, float min, float max) |