Fix buzz in Monstro's 2nd oscillator (#7334) (#7368)

Fix a buzzing sound in Monstro's 2nd oscillator. It was introduced with
commit c2f2b7e0d7.

The problem was caused by checking if `len_r` is not equal to 0 instead of
checking `pd_r`.
This commit is contained in:
Michael Gregorius
2024-07-05 16:47:44 +02:00
committed by GitHub
parent 538572a3c5
commit 0384813ae4

View File

@@ -514,7 +514,7 @@ void MonstroSynth::renderOutput( fpp_t _frames, SampleFrame* _buf )
}
sample_t O2R = 0.;
if (len_r != 0.)
if (pd_r != 0.)
{
len_r = BandLimitedWave::pdToLen(pd_r);
if (m_counter2r > 0)