From 27383f91b7a5fc12ef1f8abbbbc7abe2ed113626 Mon Sep 17 00:00:00 2001 From: Vesa Date: Thu, 26 Jun 2014 13:18:00 +0300 Subject: [PATCH] basic_filters: replace div with mul --- include/basic_filters.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/basic_filters.h b/include/basic_filters.h index f026226a1..84484aeae 100644 --- a/include/basic_filters.h +++ b/include/basic_filters.h @@ -486,7 +486,7 @@ public: m_rcc = (1.0f/(_freq*2.0f*M_PI)) / ( (1.0f/(_freq*2.0f*M_PI)) + (1.0f/(m_sampleRate*4)) ); // Stretch Q/resonance, as self-oscillation reliably starts at a q of ~2.5 - ~2.6 - m_rcq = _q/4.f; + m_rcq = _q * 0.25f; return; } @@ -502,7 +502,7 @@ public: static const float freqRatio = 4.0f / 14000.0f; // Stretch Q/resonance - m_vfq = _q/4.f; + m_vfq = _q * 0.25f; // frequency in lmms ranges from 1Hz to 14000Hz const float vowelf = _freq * freqRatio;