|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Lookup table functions. More...
Namespaces | |
| namespace | detail |
Functions | |
| template<uint16_t Size> | |
| uint16_t | lookup_linear (const uint16_t *table, uint32_t phase) |
| uint16_t | mix (uint16_t a, uint16_t b, uint16_t balance) |
| template<uint16_t Size> | |
| float | lookup_linear (const float *table, uint32_t phase) |
| template<uint16_t Size> | |
| float | lookup_cubic (const float *table, uint32_t phase) |
| template<uint16_t Size> | |
| float | crossfade (const float *table_a, const float *table_b, uint32_t phase, float balance) |
| float | mix (float a, float b, float balance) |
Variables | |
| constexpr uint16_t | exp_curve_256 [257] |
| constexpr uint16_t | exp_curve_256_size = 256 |
| constexpr float | pitch_ratio_high_256 [257] |
| constexpr uint16_t | pitch_ratio_high_256_size = 256 |
| constexpr float | pitch_ratio_low_256 [257] |
| constexpr uint16_t | pitch_ratio_low_256_size = 256 |
| constexpr float | saw_256 [258] |
| constexpr uint16_t | saw_256_size = 256 |
| constexpr float | sin_1024 [1026] |
| constexpr uint16_t | sin_1024_size = 1024 |
| constexpr float | sin_256 [258] |
| constexpr uint16_t | sin_256_size = 256 |
| constexpr float | square_256 [258] |
| constexpr uint16_t | square_256_size = 256 |
| constexpr float | triangle_256 [258] |
| constexpr uint16_t | triangle_256_size = 256 |
Lookup table functions.
Interpolated lookup for LUTE-generated tables:
lookup_linear<N>() - Linear interpolationlookup_cubic<N>() - Cubic interpolationcrossfade() - Crossfade between two tablesmix() - Mix multiple tables
|
inline |
Definition at line 113 of file lut.hpp.
References lookup_linear().
|
inline |
Definition at line 84 of file lut.hpp.
References sbl::dsp::lut::detail::log2_of().
|
inline |
Definition at line 71 of file lut.hpp.
References sbl::dsp::lut::detail::log2_of().
|
inline |
Definition at line 39 of file lut.hpp.
References sbl::dsp::FRAC16_MASK, and sbl::dsp::lut::detail::log2_of().
Referenced by crossfade(), sbl::dsp::lut_curve_warp(), mix(), sbl::widgets::source::ScanningOsc< TableSize, MaxTables >::process(), sbl::dsp::Waveshaper< Size >::process(), sbl::dsp::WavetableReader< Size >::read(), sbl::dsp::WavetableReader< Size >::read_block(), and sbl::dsp::WavetableReader< Size >::read_cubic().
Definition at line 122 of file lut.hpp.
References lookup_linear().
Definition at line 52 of file lut.hpp.
References sbl::dsp::U16_MAX.
Definition at line 10 of file exp_curve_256.hpp.
Referenced by sbl::dsp::ExpCurveWarp::warp().
Definition at line 35 of file exp_curve_256.hpp.
Definition at line 10 of file pitch_ratio_high_256.hpp.
Referenced by sbl::dsp::semitones_to_ratio().
Definition at line 56 of file pitch_ratio_high_256.hpp.
Definition at line 10 of file pitch_ratio_low_256.hpp.
Referenced by sbl::dsp::semitones_to_ratio().
Definition at line 56 of file pitch_ratio_low_256.hpp.
Definition at line 10 of file saw_256.hpp.
Definition at line 56 of file saw_256.hpp.
Definition at line 10 of file sin_1024.hpp.
Definition at line 184 of file sin_1024.hpp.
Definition at line 10 of file sin_256.hpp.
Definition at line 56 of file sin_256.hpp.
Definition at line 10 of file square_256.hpp.
Definition at line 56 of file square_256.hpp.
Definition at line 10 of file triangle_256.hpp.
Definition at line 56 of file triangle_256.hpp.