Peaking Filter
Overview
Peaking second-order IIR (Infinite Impulse Response) filter. This filter is embodied by the peaking
class.
Declaration
struct bw (1)
{
double val; // in octaves
};
struct peaking : biquad
{
peaking(double db_gain, frequency f, float sps, bw _bw);
peaking(double db_gain, frequency f, float sps, double q = 0.707);
void config(double db_gain, frequency f, float sps, bw _bw);
void config(double db_gain, frequency f, float sps, double q = 0.707);
};
1 | Utility type to distinguish bandwidth from q which is just a double |
Expressions
In addition to valid expressions for biquad, peaking
allows these expressions.
Notation
bf
-
Object of type
peaking
. f
-
Object of type
frequency
. sps
-
Floating point value representing samples per second.
b
-
Bandwidth (in octaves).
q
-
Q or quality factor.
g
-
gain (in decibels).
a [, b, c, d]
-
Required
a
, optionalb, c, d
.