OpenShot Library | libopenshot-audio
0.1.9
|
A set of coefficients for use in an IIRFilter object. More...
#include <juce_IIRFilter.h>
Public Member Functions | |
IIRCoefficients () noexcept | |
Creates a null set of coefficients (which will produce silence). More... | |
IIRCoefficients (double c1, double c2, double c3, double c4, double c5, double c6) noexcept | |
Directly constructs an object from the raw coefficients. More... | |
IIRCoefficients (const IIRCoefficients &) noexcept | |
Creates a copy of another filter. More... | |
IIRCoefficients & | operator= (const IIRCoefficients &) noexcept |
Creates a copy of another filter. More... | |
~IIRCoefficients () noexcept | |
Destructor. More... | |
Static Public Member Functions | |
static IIRCoefficients | makeLowPass (double sampleRate, double frequency) noexcept |
Returns the coefficients for a low-pass filter. More... | |
static IIRCoefficients | makeLowPass (double sampleRate, double frequency, double Q) noexcept |
Returns the coefficients for a low-pass filter with variable Q. More... | |
static IIRCoefficients | makeHighPass (double sampleRate, double frequency) noexcept |
Returns the coefficients for a high-pass filter. More... | |
static IIRCoefficients | makeHighPass (double sampleRate, double frequency, double Q) noexcept |
Returns the coefficients for a high-pass filter with variable Q. More... | |
static IIRCoefficients | makeBandPass (double sampleRate, double frequency) noexcept |
Returns the coefficients for a band-pass filter. More... | |
static IIRCoefficients | makeBandPass (double sampleRate, double frequency, double Q) noexcept |
Returns the coefficients for a band-pass filter with variable Q. More... | |
static IIRCoefficients | makeNotchFilter (double sampleRate, double frequency) noexcept |
Returns the coefficients for a notch filter. More... | |
static IIRCoefficients | makeNotchFilter (double sampleRate, double frequency, double Q) noexcept |
Returns the coefficients for a notch filter with variable Q. More... | |
static IIRCoefficients | makeAllPass (double sampleRate, double frequency) noexcept |
Returns the coefficients for an all-pass filter. More... | |
static IIRCoefficients | makeAllPass (double sampleRate, double frequency, double Q) noexcept |
Returns the coefficients for an all-pass filter with variable Q. More... | |
static IIRCoefficients | makeLowShelf (double sampleRate, double cutOffFrequency, double Q, float gainFactor) noexcept |
Returns the coefficients for a low-pass shelf filter with variable Q and gain. More... | |
static IIRCoefficients | makeHighShelf (double sampleRate, double cutOffFrequency, double Q, float gainFactor) noexcept |
Returns the coefficients for a high-pass shelf filter with variable Q and gain. More... | |
static IIRCoefficients | makePeakFilter (double sampleRate, double centreFrequency, double Q, float gainFactor) noexcept |
Returns the coefficients for a peak filter centred around a given frequency, with a variable Q and gain. More... | |
Public Attributes | |
float | coefficients [5] |
The raw coefficients. More... | |
A set of coefficients for use in an IIRFilter object.
Definition at line 40 of file juce_IIRFilter.h.
|
noexcept |
Creates a null set of coefficients (which will produce silence).
Definition at line 26 of file juce_IIRFilter.cpp.
References coefficients.
Referenced by makeAllPass(), makeBandPass(), makeHighPass(), makeHighShelf(), makeLowPass(), makeLowShelf(), makeNotchFilter(), and makePeakFilter().
|
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!
Definition at line 44 of file juce_IIRFilter.cpp.
References coefficients.
|
noexcept |
Creates a copy of another filter.
Definition at line 33 of file juce_IIRFilter.cpp.
References coefficients.
|
noexcept |
Destructor.
Definition at line 31 of file juce_IIRFilter.cpp.
|
noexcept |
Creates a copy of another filter.
Definition at line 38 of file juce_IIRFilter.cpp.
References coefficients.
|
staticnoexcept |
Returns the coefficients for a low-pass filter.
Definition at line 56 of file juce_IIRFilter.cpp.
|
staticnoexcept |
Returns the coefficients for a low-pass filter with variable Q.
Definition at line 62 of file juce_IIRFilter.cpp.
References IIRCoefficients().
|
staticnoexcept |
Returns the coefficients for a high-pass filter.
Definition at line 82 of file juce_IIRFilter.cpp.
|
staticnoexcept |
Returns the coefficients for a high-pass filter with variable Q.
Definition at line 88 of file juce_IIRFilter.cpp.
References IIRCoefficients().
|
staticnoexcept |
Returns the coefficients for a band-pass filter.
Definition at line 108 of file juce_IIRFilter.cpp.
|
staticnoexcept |
Returns the coefficients for a band-pass filter with variable Q.
Definition at line 114 of file juce_IIRFilter.cpp.
References IIRCoefficients().
|
staticnoexcept |
Returns the coefficients for a notch filter.
Definition at line 134 of file juce_IIRFilter.cpp.
|
staticnoexcept |
Returns the coefficients for a notch filter with variable Q.
Definition at line 140 of file juce_IIRFilter.cpp.
References IIRCoefficients().
|
staticnoexcept |
Returns the coefficients for an all-pass filter.
Definition at line 160 of file juce_IIRFilter.cpp.
|
staticnoexcept |
Returns the coefficients for an all-pass filter with variable Q.
Definition at line 166 of file juce_IIRFilter.cpp.
References IIRCoefficients().
|
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.
Definition at line 186 of file juce_IIRFilter.cpp.
References IIRCoefficients().
|
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.
Definition at line 211 of file juce_IIRFilter.cpp.
References IIRCoefficients().
|
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.
Definition at line 236 of file juce_IIRFilter.cpp.
References IIRCoefficients().
float juce::IIRCoefficients::coefficients[5] |
The raw coefficients.
You should leave these numbers alone unless you really know what you're doing.
Definition at line 148 of file juce_IIRFilter.h.
Referenced by IIRCoefficients(), juce::IIRFilter::IIRFilter(), operator=(), juce::IIRFilter::processSamples(), juce::IIRFilter::processSingleSampleRaw(), and juce::IIRFilter::setCoefficients().