The AudioFilter object implements all filters in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle.
More...
#include <fxobjects.h>
|
Biquad | biquad |
| the biquad object
|
|
double | coeffArray [numCoeffs] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } |
| our local copy of biquad coeffs
|
|
AudioFilterParameters | audioFilterParameters |
| parameters
|
|
double | sampleRate = 44100.0 |
| current sample rate
|
|
The AudioFilter object implements all filters in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle.
Audio I/O:
- Processes mono input to mono output.
Control I/F:
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2018 / 09 / 7
◆ calculateFilterCoeffs()
bool AudioFilter::calculateFilterCoeffs |
( |
| ) |
|
|
protected |
— function to recalculate coefficients due to a change in filter parameters
◆ canProcessAudioFrame()
virtual bool AudioFilter::canProcessAudioFrame |
( |
| ) |
|
|
inlinevirtual |
◆ getG_value()
double AudioFilter::getG_value |
( |
| ) |
|
|
inline |
— helper for Harma filters (phaser)
◆ getParameters()
◆ getS_value()
double AudioFilter::getS_value |
( |
| ) |
|
|
inline |
— helper for Harma filters (phaser)
◆ processAudioSample()
double AudioFilter::processAudioSample |
( |
double |
xn | ) |
|
|
virtual |
process one sample through the audio filter
process input x(n) through the filter to produce return value y(n)
- Parameters
-
- Returns
- the processed sample
- NOTES:
Uses the modified biquaqd structure that includes the wet and dry signal coefficients c and d.
Here the biquad object does all of the work and we simply combine the wet and dry signals.
return (dry) + (processed): x(n)*d0 + y(n)*c0
- Parameters
-
- Returns
- the biquad processed output y(n)
Implements IAudioSignalProcessor.
◆ reset()
virtual bool AudioFilter::reset |
( |
double |
_sampleRate | ) |
|
|
inlinevirtual |
◆ setParameters()
◆ setSampleRate()
virtual void AudioFilter::setSampleRate |
( |
double |
_sampleRate | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following files: