1 #ifndef __TriangleOscillator_h
2 #define __TriangleOscillator_h
15 return -2 * (fabsf(
phase) - 0.5);
26 float sample =
phase < 0.5f ? 1 : -1;
static constexpr float begin_phase
static constexpr float end_phase
static float polyblep(float t, float dt)
Calculate poly blep antialiasing compensation on normalised (to range [0, 1]) phase and phase increme...
void setSampleRate(float sr)
TriangleOscillator(float sr)
static constexpr float end_phase
static constexpr float begin_phase