Klang C++
Language Reference (draft)
|
Performance-optimised oscillators.
Classes | |
struct | Increment |
Phase increment (optimised) More... | |
struct | Noise |
White noise generator (optimised) More... | |
struct | OSM |
Oscillator State Machine. More... | |
struct | Phase |
Oscillator phase (optimised) More... | |
struct | Pulse |
Pulse wave oscillator (band-limited, optimised) More... | |
struct | Saw |
Saw wave oscillator (band-limited, optimised) More... | |
struct | Sine |
Sine wave oscillator (band-limited, optimised) More... | |
struct | Square |
Square wave oscillator (band-limited, optimised) More... | |
struct | Triangle |
Triangle wave oscillator (band-limited, optimised) More... | |
Functions | |
static float | polysin (float x) |
sin approximation [-pi/2, pi/2] using odd minimax polynomial (Robin Green) | |
static float | fastsin (float x) |
fast sine (based on V2/Farbrausch; using polysin) | |
static float | fastsinp (unsigned int p) |
fast sine (using polysin and integer math) | |
Variables | |
constexpr float | twoPi = float(2.0 * 3.1415926535897932384626433832795) |
constexpr float | twoPiInv = float(1.0 / twoPi) |
|
inlinestatic |
Definition at line 3830 of file klang.h.
References klang::fast_mod2pi(), klang::pi, polysin(), and twoPi.
|
inlinestatic |
Definition at line 3848 of file klang.h.
References klang::fast_modp(), klang::pi, polysin(), and twoPi.
Referenced by klang::Generators::Fast::Sine::process().
|
inlinestatic |
Definition at line 3824 of file klang.h.
Referenced by fastsin(), and fastsinp().
|
constexpr |
Definition at line 3687 of file klang.h.
Referenced by fastsin(), fastsinp(), and klang::Generators::Fast::Sine::set().