diff --git a/lib/Sine.cpp b/lib/Sine.cpp index 31e8a62..7fd842f 100644 --- a/lib/Sine.cpp +++ b/lib/Sine.cpp @@ -42,6 +42,8 @@ namespace muz m_phases[i] += 2 * M_PI * m_out_freq[i] / static_cast(m_conf.samplerate()); + m_phases[i] = std::fmod(m_phases[i], 2.0f * M_PI); + out[i] = value; } }