From 0384813ae40eaa0ee7e8fc7bcf5a2e2573c87265 Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Fri, 5 Jul 2024 16:47:44 +0200 Subject: [PATCH] Fix buzz in Monstro's 2nd oscillator (#7334) (#7368) Fix a buzzing sound in Monstro's 2nd oscillator. It was introduced with commit c2f2b7e0d76. The problem was caused by checking if `len_r` is not equal to 0 instead of checking `pd_r`. --- plugins/Monstro/Monstro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Monstro/Monstro.cpp b/plugins/Monstro/Monstro.cpp index c9b715ba7d2..7063be0e265 100644 --- a/plugins/Monstro/Monstro.cpp +++ b/plugins/Monstro/Monstro.cpp @@ -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)