Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Generators::Fast Namespace Reference

Fast oscillators and phase helpers.

Classes

struct  Increment
 Signed phase step stored modulo one turn (2^32 ticks).
 
struct  Noise
 White noise generator (optimised) More...
 
struct  Phase
 Wrapping oscillator phase; setters take radians, conversion gives cycles.
 
struct  Phasor
 Aliased 0-to-1 ramp using an integer wrapping phase. More...
 
struct  Sine
 Sine wave oscillator (band-limited, optimised) More...
 

Variables

constexpr float twoPi = float(2.0 * 3.1415926535897932384626433832795)
 
constexpr float twoPiInv = float(1.0 / twoPi)
 

Variable Documentation

◆ twoPi

float klang::Generators::Fast::twoPi = float(2.0 * 3.1415926535897932384626433832795)
constexpr

Definition at line 6416 of file klang.h.

◆ twoPiInv

float klang::Generators::Fast::twoPiInv = float(1.0 / twoPi)
constexpr

Definition at line 6417 of file klang.h.