Merge pull request #483 from softrabbit/bug468
basic_filters.h: Saner limits for frequency
This commit is contained in:
@@ -69,7 +69,7 @@ public:
|
||||
|
||||
static inline float minFreq()
|
||||
{
|
||||
return( 0.01f );
|
||||
return( 3.0f );
|
||||
}
|
||||
|
||||
static inline float minQ()
|
||||
@@ -488,8 +488,9 @@ public:
|
||||
/*, const bool _q_is_bandwidth = false*/ )
|
||||
{
|
||||
// temp coef vars
|
||||
_freq = qMax( _freq, minFreq() );// limit freq and q for not getting
|
||||
// bad noise out of the filter...
|
||||
_freq = qBound(minFreq(), _freq, 20000.0f); // limit freq and q for not getting
|
||||
// bad noise out of the filter...
|
||||
|
||||
_q = qMax( _q, minQ() );
|
||||
|
||||
if( m_type == Lowpass_RC12 ||
|
||||
|
||||
Reference in New Issue
Block a user