Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Functions
interpolate.hpp File Reference
#include <cstdint>
#include <cmath>
Include dependency graph for interpolate.hpp:
This graph shows which files directly or indirectly include this file:

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::crossfade (float a, float b, float t)
 Linear crossfade between two values.
 
constexpr float sbl::dsp::smooth_step (float t)
 Hermite smooth step (3rd-order S-curve)
 
constexpr int32_t sbl::dsp::crossfade_i16 (int16_t a, int16_t b, uint16_t t)
 Integer crossfade for 16-bit values.
 
float sbl::dsp::crossfade_equal_power (float a, float b, float t)
 Equal-power crossfade between two values.
 
void sbl::dsp::crossfade_block (const float *a, const float *b, float *out, float mix, uint16_t frames)
 Linear crossfade over a block with constant mix.
 
void sbl::dsp::crossfade_block_equal_power (const float *a, const float *b, float *out, float mix, uint16_t frames)
 Equal-power crossfade over a block with constant mix.