|
| Coefficients () |
| Creates a null set of coefficients (which will produce silence). More...
|
|
| Coefficients (NumericType b0, NumericType b1, NumericType a0, NumericType a1) |
| Directly constructs an object from the raw coefficients. More...
|
|
| Coefficients (NumericType b0, NumericType b1, NumericType b2, NumericType a0, NumericType a1, NumericType a2) |
|
| Coefficients (NumericType b0, NumericType b1, NumericType b2, NumericType b3, NumericType a0, NumericType a1, NumericType a2, NumericType a3) |
|
| Coefficients (const Coefficients &)=default |
|
| Coefficients (Coefficients &&)=default |
|
Coefficients & | operator= (const Coefficients &)=default |
|
Coefficients & | operator= (Coefficients &&)=default |
|
size_t | getFilterOrder () const noexcept |
| Returns the filter order associated with the coefficients. More...
|
|
double | getMagnitudeForFrequency (double frequency, double sampleRate) const noexcept |
| Returns the magnitude frequency response of the filter for a given frequency and sample rate. More...
|
|
void | getMagnitudeForFrequencyArray (const double *frequencies, double *magnitudes, size_t numSamples, double sampleRate) const noexcept |
| Returns the magnitude frequency response of the filter for a given frequency array and sample rate. More...
|
|
double | getPhaseForFrequency (double frequency, double sampleRate) const noexcept |
| Returns the phase frequency response of the filter for a given frequency and sample rate. More...
|
|
void | getPhaseForFrequencyArray (double *frequencies, double *phases, size_t numSamples, double sampleRate) const noexcept |
| Returns the phase frequency response of the filter for a given frequency array and sample rate. More...
|
|
NumericType * | getRawCoefficients () noexcept |
| Returns a raw data pointer to the coefficients. More...
|
|
const NumericType * | getRawCoefficients () const noexcept |
| Returns a raw data pointer to the coefficients. More...
|
|
void | incReferenceCount () noexcept |
| Increments the object's reference count. More...
|
|
void | decReferenceCount () noexcept |
| Decreases the object's reference count. More...
|
|
bool | decReferenceCountWithoutDeleting () noexcept |
| Decreases the object's reference count. More...
|
|
int | getReferenceCount () const noexcept |
| Returns the object's current reference count. More...
|
|
|
static Ptr | makeFirstOrderLowPass (double sampleRate, NumericType frequency) |
| Returns the coefficients for a first order low-pass filter. More...
|
|
static Ptr | makeFirstOrderHighPass (double sampleRate, NumericType frequency) |
| Returns the coefficients for a first order high-pass filter. More...
|
|
static Ptr | makeFirstOrderAllPass (double sampleRate, NumericType frequency) |
| Returns the coefficients for a first order all-pass filter. More...
|
|
static Ptr | makeLowPass (double sampleRate, NumericType frequency) |
| Returns the coefficients for a low-pass filter. More...
|
|
static Ptr | makeLowPass (double sampleRate, NumericType frequency, NumericType Q) |
| Returns the coefficients for a low-pass filter with variable Q. More...
|
|
static Ptr | makeHighPass (double sampleRate, NumericType frequency) |
| Returns the coefficients for a high-pass filter. More...
|
|
static Ptr | makeHighPass (double sampleRate, NumericType frequency, NumericType Q) |
| Returns the coefficients for a high-pass filter with variable Q. More...
|
|
static Ptr | makeBandPass (double sampleRate, NumericType frequency) |
| Returns the coefficients for a band-pass filter. More...
|
|
static Ptr | makeBandPass (double sampleRate, NumericType frequency, NumericType Q) |
| Returns the coefficients for a band-pass filter with variable Q. More...
|
|
static Ptr | makeNotch (double sampleRate, NumericType frequency) |
| Returns the coefficients for a notch filter. More...
|
|
static Ptr | makeNotch (double sampleRate, NumericType frequency, NumericType Q) |
| Returns the coefficients for a notch filter with variable Q. More...
|
|
static Ptr | makeAllPass (double sampleRate, NumericType frequency) |
| Returns the coefficients for an all-pass filter. More...
|
|
static Ptr | makeAllPass (double sampleRate, NumericType frequency, NumericType Q) |
| Returns the coefficients for an all-pass filter with variable Q. More...
|
|
static Ptr | makeLowShelf (double sampleRate, NumericType cutOffFrequency, NumericType Q, NumericType gainFactor) |
| Returns the coefficients for a low-pass shelf filter with variable Q and gain. More...
|
|
static Ptr | makeHighShelf (double sampleRate, NumericType cutOffFrequency, NumericType Q, NumericType gainFactor) |
| Returns the coefficients for a high-pass shelf filter with variable Q and gain. More...
|
|
static Ptr | makePeakFilter (double sampleRate, NumericType centreFrequency, NumericType Q, NumericType gainFactor) |
| Returns the coefficients for a peak filter centred around a given frequency, with a variable Q and gain. More...
|
|
template<typename NumericType>
struct dsp::IIR::Coefficients< NumericType >
A set of coefficients for use in an Filter object.
- See also
- IIR::Filter
template<typename NumericType>
static Ptr dsp::IIR::Coefficients< NumericType >::makePeakFilter |
( |
double |
sampleRate, |
|
|
NumericType |
centreFrequency, |
|
|
NumericType |
Q, |
|
|
NumericType |
gainFactor |
|
) |
| |
|
static |
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.