Implements a simple allpass filter with differential equation \(y(n) = g*x(n) + x(n-1) -g*y(n-1)\).
More...
#include <filter.h>
|
|
| AllpassFilter (const AllpassFilterOptions &config={}) |
| | Constructs an allpass filter.
|
| |
| void | SetCoefficients (float coeff) |
| | Sets the allpass coefficient.
|
| |
| float | Tick (float in) |
| | Input a sample in the filter and return the next output.
|
| |
| void | Process (const AudioBuffer &input, AudioBuffer &output) noexcept override |
| | Processes a block of input samples through the filter.
|
| |
| uint32_t | InputChannelCount () const override |
| | Returns the number of input channels supported by this processor.
|
| |
| uint32_t | OutputChannelCount () const override |
| | Returns the number of output channels produced by this processor.
|
| |
| void | Clear () override |
| | Clears the internal state of the processor.
|
| |
| std::unique_ptr< AudioProcessor > | Clone () const override |
| | Creates a copy of the filter.
|
| |
Implements a simple allpass filter with differential equation \(y(n) = g*x(n) + x(n-1) -g*y(n-1)\).
◆ Clear()
| void sfFDN::AllpassFilter::Clear |
( |
| ) |
|
|
overridevirtual |
Clears the internal state of the processor.
This function resets the internal state of the filter to zero.
Implements sfFDN::AudioProcessor.
◆ Clone()
| std::unique_ptr< AudioProcessor > sfFDN::AllpassFilter::Clone |
( |
| ) |
const |
|
overridevirtual |
Creates a copy of the filter.
- Returns
- A unique pointer to the cloned filter.
Implements sfFDN::AudioProcessor.
◆ InputChannelCount()
| uint32_t sfFDN::AllpassFilter::InputChannelCount |
( |
| ) |
const |
|
overridevirtual |
Returns the number of input channels supported by this processor.
- Returns
- The number of input channels.
Implements sfFDN::AudioProcessor.
◆ OutputChannelCount()
| uint32_t sfFDN::AllpassFilter::OutputChannelCount |
( |
| ) |
const |
|
overridevirtual |
Returns the number of output channels produced by this processor.
- Returns
- The number of output channels.
Implements sfFDN::AudioProcessor.
◆ Process()
Processes a block of input samples through the filter.
- Parameters
-
| input | The input audio buffer. |
| output | The output audio buffer. The input and output buffers must have the same number of channels and sample count. |
Implements sfFDN::AudioProcessor.
◆ SetCoefficients()
| void sfFDN::AllpassFilter::SetCoefficients |
( |
float | coeff | ) |
|
|
inline |
Sets the allpass coefficient.
- Parameters
-
| coeff | The allpass coefficient. |
◆ Tick()
| float sfFDN::AllpassFilter::Tick |
( |
float | in | ) |
|
Input a sample in the filter and return the next output.
- Parameters
-
- Returns
- The next output sample
The documentation for this class was generated from the following file: