A set of coefficients for use in an FIRFilter object. More...
#include <juce_FIRFilter.h>
Public Types | |
using | Ptr = ReferenceCountedObjectPtr< Coefficients > |
The Coefficients structure is ref-counted, so this is a handy type that can be used as a pointer to one. More... | |
Public Member Functions | |
Coefficients () | |
Creates a null set of coefficients (which will produce silence). More... | |
Coefficients (size_t size) | |
Creates a null set of coefficients of a given size. More... | |
Coefficients (const NumericType *samples, size_t numSamples) | |
Creates a set of coefficients from an array of samples. More... | |
Coefficients (const Coefficients &)=default | |
Coefficients (Coefficients &&)=default | |
void | decReferenceCount () noexcept |
Decreases the object's reference count. More... | |
bool | decReferenceCountWithoutDeleting () noexcept |
Decreases the object's reference count. More... | |
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 (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... | |
int | getReferenceCount () const noexcept |
Returns the object's current reference count. More... | |
void | incReferenceCount () noexcept |
Increments the object's reference count. More... | |
void | normalise () noexcept |
Scales the values of the FIR filter with the sum of the squared coefficients. More... | |
Coefficients & | operator= (const Coefficients &)=default |
Coefficients & | operator= (Coefficients &&)=default |
Public Attributes | |
Array< NumericType > | coefficients |
The raw coefficients. More... | |
Protected Member Functions | |
void | resetReferenceCount () noexcept |
Resets the reference count to zero without deleting the object. More... | |
A set of coefficients for use in an FIRFilter object.
{DSP}
using juce::dsp::FIR::Coefficients< NumericType >::Ptr = ReferenceCountedObjectPtr<Coefficients> |
The Coefficients structure is ref-counted, so this is a handy type that can be used as a pointer to one.
|
inline |
Creates a null set of coefficients (which will produce silence).
|
inline |
Creates a null set of coefficients of a given size.
References juce::dsp::FIR::Filter< SampleType >::coefficients.
|
inline |
Creates a set of coefficients from an array of samples.
References juce::dsp::FIR::Filter< SampleType >::operator=().
|
default |
|
default |
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will be deleted.
References jassert.
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.
References jassert.
|
inlinenoexcept |
Returns the filter order associated with the coefficients.
References juce::dsp::FIR::Filter< SampleType >::coefficients.
|
noexcept |
Returns the magnitude frequency response of the filter for a given frequency and sample rate.
|
noexcept |
Returns the magnitude frequency response of the filter for a given frequency array and sample rate.
|
noexcept |
Returns the phase frequency response of the filter for a given frequency and sample rate.
|
noexcept |
Returns the phase frequency response of the filter for a given frequency array and sample rate.
|
inlinenoexcept |
Returns a raw data pointer to the coefficients.
References juce::dsp::FIR::Filter< SampleType >::coefficients.
|
inlinenoexcept |
Returns a raw data pointer to the coefficients.
References juce::dsp::FIR::Filter< SampleType >::coefficients.
|
inlinenoexceptinherited |
Returns the object's current reference count.
|
inlinenoexceptinherited |
Increments the object's reference count.
This is done automatically by the smart pointer, but is public just in case it's needed for nefarious purposes.
|
noexcept |
Scales the values of the FIR filter with the sum of the squared coefficients.
|
default |
|
default |
|
inlineprotectednoexceptinherited |
Resets the reference count to zero without deleting the object.
You should probably never need to use this!
Array<NumericType> juce::dsp::FIR::Coefficients< NumericType >::coefficients |
The raw coefficients.
You should leave these numbers alone unless you really know what you're doing.