Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Functions
param.hpp File Reference
#include <cstdint>
Include dependency graph for param.hpp:

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::dsp
 DSP atoms for audio signal processing.
 

Functions

constexpr float sbl::dsp::cc_to_float (uint8_t val)
 Normalize MIDI CC (0-127) to [0.0, 1.0].
 
constexpr float sbl::dsp::u16_to_float (uint16_t val)
 Normalize 16-bit unsigned (0-65535) to [0.0, 1.0].
 
constexpr float sbl::dsp::u14_to_float (uint16_t val)
 Normalize 14-bit MIDI (0-16383) to [0.0, 1.0] (pitch bend, NRPN)
 
constexpr float sbl::dsp::map_linear (float t, float min, float max)
 Linear mapping: t → min + (max - min) * t.
 
constexpr float sbl::dsp::map_quadratic (float t, float min, float max)
 
constexpr float sbl::dsp::map_scurve (float t, float min, float max)