JUCE: SingleThreadedIIRFilter Class Reference

JUCE

Public Member Functions | List of all members
SingleThreadedIIRFilter Class Reference
juce_audio_basics » utilities

An IIR filter that can perform low, high, or band-pass filtering on an audio signal, with no thread-safety guarantees. More...

`#include <juce_IIRFilter.h>`

Inheritance diagram for SingleThreadedIIRFilter:

## Public Member Functions
| IIRFilterBase () noexcept
| Creates a filter. More...
| IIRFilterBase (const IIRFilterBase &) noexcept
| Creates a copy of another filter. More...
Public Member Functions inherited from IIRFilterBase< DummyCriticalSection >
| IIRFilterBase () noexcept
| Creates a filter. More...
| IIRFilterBase (const IIRFilterBase &) noexcept
| Creates a copy of another filter. More...
void | makeInactive () noexcept
| Clears the filter so that any incoming data passes through unchanged. More...
void | setCoefficients (const IIRCoefficients &newCoefficients) noexcept
| Applies a set of coefficients to this filter. More...
IIRCoefficients | getCoefficients () const noexcept
| Returns the coefficients that this filter is using. More...
void | reset () noexcept
| Resets the filter's processing pipeline, ready to start a new stream of data. More...
void | processSamples (float *samples, int numSamples) noexcept
| Performs the filter operation on the given set of samples. More...
float | processSingleSampleRaw (float sample) noexcept
| Processes a single sample, without any locking or checking. More...

## Additional Inherited Members
Protected Member Functions inherited from IIRFilterBase< DummyCriticalSection >
IIRFilter & | operator= (const IIRFilter &)=delete
Protected Attributes inherited from IIRFilterBase< DummyCriticalSection >
DummyCriticalSection | processLock
IIRCoefficients | coefficients
float | v1
float | v2
bool | active

## Detailed Description

An IIR filter that can perform low, high, or band-pass filtering on an audio signal, with no thread-safety guarantees.

You should use this class if you need an IIR filter, and don't plan to call its member functions from multiple threads at once.

See also
  IIRFilter, IIRCoefficient, IIRFilterAudioSource

## Member Function Documentation

## ◆ IIRFilterBase() [1/2]

IIRFilterBase< Mutex >::IIRFilterBase | ( |  | ) |
| noexcept

Creates a filter.

Initially the filter is inactive, so will have no effect on samples that you process with it. Use the setCoefficients() method to turn it into the type of filter needed.

## ◆ IIRFilterBase() [2/2]

IIRFilterBase< Mutex >::IIRFilterBase | ( | const IIRFilterBase & |  | ) |
| noexcept

Creates a copy of another filter.

The documentation for this class was generated from the following file:

- juce_audio_basics/utilities/juce_IIRFilter.h