Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
sbl::dsp::FloatRationalWarp Struct Reference

#include <warp.hpp>

Collaboration diagram for sbl::dsp::FloatRationalWarp:

Static Public Member Functions

static float warp (float phase, float curve)
 

Static Public Attributes

static constexpr float K = 128.0f
 

Detailed Description

Rational function warp (float). Zero flash, zero RAM. f(t) = (1+a)*t / (1+a*t), with a = K * curve^2. Inspired by MI Stages WarpPhase (MIT).

Definition at line 161 of file warp.hpp.

Member Function Documentation

◆ warp()

static float sbl::dsp::FloatRationalWarp::warp ( float  phase,
float  curve 
)
inlinestatic
Note
ISR-safe — bounded computation, no I/O.

Definition at line 165 of file warp.hpp.

References K.

Member Data Documentation

◆ K

constexpr float sbl::dsp::FloatRationalWarp::K = 128.0f
staticconstexpr

Definition at line 162 of file warp.hpp.

Referenced by warp().


The documentation for this struct was generated from the following file: