#include <juce_audio_basics.h>
|
static IIRCoefficients | makeLowPass (double sampleRate, double frequency) noexcept |
|
static IIRCoefficients | makeHighPass (double sampleRate, double frequency) noexcept |
|
static IIRCoefficients | makeLowShelf (double sampleRate, double cutOffFrequency, double Q, float gainFactor) noexcept |
|
static IIRCoefficients | makeHighShelf (double sampleRate, double cutOffFrequency, double Q, float gainFactor) noexcept |
|
static IIRCoefficients | makePeakFilter (double sampleRate, double centreFrequency, double Q, float gainFactor) noexcept |
|
A set of coefficients for use in an IIRFilter object.
- See also
- IIRFilter
IIRCoefficients::IIRCoefficients |
( |
| ) |
|
|
noexcept |
Creates a null set of coefficients (which will produce silence).
IIRCoefficients::IIRCoefficients |
( |
double |
c1, |
|
|
double |
c2, |
|
|
double |
c3, |
|
|
double |
c4, |
|
|
double |
c5, |
|
|
double |
c6 |
|
) |
| |
|
noexcept |
Directly constructs an object from the raw coefficients. Most people will want to use the static methods instead of this, but the constructor is public to allow tinkerers to create their own custom filters!
Creates a copy of another filter.
IIRCoefficients::~IIRCoefficients |
( |
| ) |
|
|
noexcept |
IIRCoefficients IIRCoefficients::makeHighPass |
( |
double |
sampleRate, |
|
|
double |
frequency |
|
) |
| |
|
staticnoexcept |
Returns the coefficients for a high-pass filter.
IIRCoefficients IIRCoefficients::makeHighShelf |
( |
double |
sampleRate, |
|
|
double |
cutOffFrequency, |
|
|
double |
Q, |
|
|
float |
gainFactor |
|
) |
| |
|
staticnoexcept |
Returns the coefficients for a high-pass shelf filter with variable Q and gain.
The gain is a scale factor that the high frequencies are multiplied by, so values greater than 1.0 will boost the high frequencies, values less than 1.0 will attenuate them.
IIRCoefficients IIRCoefficients::makeLowPass |
( |
double |
sampleRate, |
|
|
double |
frequency |
|
) |
| |
|
staticnoexcept |
Returns the coefficients for a low-pass filter.
IIRCoefficients IIRCoefficients::makeLowShelf |
( |
double |
sampleRate, |
|
|
double |
cutOffFrequency, |
|
|
double |
Q, |
|
|
float |
gainFactor |
|
) |
| |
|
staticnoexcept |
Returns the coefficients for a low-pass shelf filter with variable Q and gain.
The gain is a scale factor that the low frequencies are multiplied by, so values greater than 1.0 will boost the low frequencies, values less than 1.0 will attenuate them.
IIRCoefficients IIRCoefficients::makePeakFilter |
( |
double |
sampleRate, |
|
|
double |
centreFrequency, |
|
|
double |
Q, |
|
|
float |
gainFactor |
|
) |
| |
|
staticnoexcept |
Returns the coefficients for a peak filter centred around a given frequency, with a variable Q and gain.
The gain is a scale factor that the centre frequencies are multiplied by, so values greater than 1.0 will boost the centre frequencies, values less than 1.0 will attenuate them.
Creates a copy of another filter.
float juce::IIRCoefficients::coefficients[5] |
The raw coefficients. You should leave these numbers alone unless you really know what you're doing.
The documentation for this class was generated from the following files: