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 (Coefficients &&)=default | |
| Coefficients (const Coefficients &)=default | |
| Coefficients (const NumericType *samples, size_t numSamples) | |
| Creates a set of coefficients from an array of samples. More... | |
| Coefficients (size_t size) | |
| Creates a null set of coefficients of a given size. 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... | |
| const NumericType * | getRawCoefficients () const noexcept |
| Returns a raw data pointer to the coefficients. More... | |
| NumericType * | getRawCoefficients () noexcept |
| Returns a raw data pointer to the coefficients. More... | |
| void | normalise () noexcept |
| Scales the values of the FIR filter with the sum of the squared coefficients. More... | |
| Coefficients & | operator= (Coefficients &&)=default |
| Coefficients & | operator= (const Coefficients &)=default |
Public Attributes | |
| Array< NumericType > | coefficients |
| The raw coefficients. More... | |
A set of coefficients for use in an FIRFilter object.
@tags{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::Coefficients< NumericType >::coefficients, juce::Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::resize(), and juce::gl::size.
|
inline |
Creates a set of coefficients from an array of samples.
|
default |
|
default |
|
inlinenoexcept |
Returns the filter order associated with the coefficients.
References juce::dsp::FIR::Coefficients< NumericType >::coefficients, and juce::Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::size().
|
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::Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::begin(), and juce::dsp::FIR::Coefficients< NumericType >::coefficients.
|
inlinenoexcept |
Returns a raw data pointer to the coefficients.
References juce::dsp::FIR::Coefficients< NumericType >::coefficients, and juce::Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::getRawDataPointer().
|
noexcept |
Scales the values of the FIR filter with the sum of the squared coefficients.
|
default |
|
default |
| 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.
Referenced by juce::dsp::FIR::Coefficients< NumericType >::Coefficients(), juce::dsp::FIR::Coefficients< NumericType >::getFilterOrder(), and juce::dsp::FIR::Coefficients< NumericType >::getRawCoefficients().