Low Shelf Filter
Overview
Low shelf second-order IIR (Infinite Impulse Response) filter. All frequencies below the shelving frequency are either boosted or attenuated by the specified gain in decibels. This filter is embodied by the lowshelf
class.
Declaration
struct lowshelf : biquad
{
lowshelf(double db_gain, frequency f, float sps, double q = 0.707);
void config(double db_gain, frequency f, float sps, double q = 0.707);
};
Expressions
In addition to valid expressions for biquad, lowshelf
allows these expressions.
Notation
ls
-
Object of type
lowshelf
. f
-
Object of type
frequency
. sps
-
Floating point value representing samples per second.
q
-
Q or quality factor.
g
-
gain (in decibels).
a [, b, c, d]
-
Required
a
, optionalb, c, d
.