🐛 sine phase overflow.

main
bog 2024-02-01 08:11:02 +01:00
parent 16f1d8656b
commit f27d1434da
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ namespace muz
m_phases[i] += 2 * M_PI * m_out_freq[i]
/ static_cast<float>(m_conf.samplerate());
m_phases[i] = std::fmod(m_phases[i], 2.0f * M_PI);
out[i] = value;
}
}