|
| Filter () |
| This will create a filter which will produce silence.
|
|
| Filter (CoefficientsPtr coefficientsToUse) |
| Creates a filter with a given set of coefficients.
|
|
| Filter (const Filter &)=default |
|
| Filter (Filter &&)=default |
|
Filter & | operator= (const Filter &)=default |
|
Filter & | operator= (Filter &&)=default |
|
void | prepare (const ProcessSpec &spec) noexcept |
| Prepare this filter for processing.
|
|
void | reset () |
| Resets the filter's processing pipeline, ready to start a new stream of data.
|
|
template<typename ProcessContext> |
void | process (const ProcessContext &context) noexcept |
| Processes a block of samples.
|
|
SampleType JUCE_VECTOR_CALLTYPE | processSample (SampleType sample) noexcept |
| Processes a single sample, without any locking.
|
|
template<typename SampleType>
class dsp::FIR::Filter< SampleType >
A processing class that can perform FIR filtering on an audio signal, in the time domain.
Using FIRFilter is fast enough for FIRCoefficients with a size lower than 128 samples. For longer filters, it might be more efficient to use the class Convolution instead, which does the same processing in the frequency domain thanks to FFT.
- See also
- FIRFilter::Coefficients, Convolution, FFT
template<typename SampleType>
Resets the filter's processing pipeline, ready to start a new stream of data.
Note that this clears the processing state, but the type of filter and its coefficients aren't changed. To disable the filter, call setEnabled (false).
References coefficients, jmax(), and snapPointerToAlignment().
Referenced by Filter(), Filter(), and prepare().
template<typename SampleType>
The coefficients of the FIR filter.
It's up to the caller to ensure that these coefficients are modified in a thread-safe way.
If you change the order of the coefficients then you must call reset after modifying them.
Referenced by Filter(), Filter(), process(), processSample(), and reset().