Minute implementation of a 2nd order resonator filter.
More...
#include <synthbase.h>
|
enum | {
xz1,
xz2,
yz1,
yz2,
numStates
} |
|
enum | { a0,
a2,
b1,
b2
} |
|
|
double | state [4] = { 0.0, 0.0, 0.0, 0.0 } |
|
double | coeffs [4] = { 0.0, 0.0, 0.0, 0.0 } |
|
double | fc = 440.0 |
|
double | Q = 0.5 |
|
double | sampleRate = 1.0 |
|
Minute implementation of a 2nd order resonator filter.
- taken from the AudioFilter object in the FX book below
- can set the fc and Q values
- uses biquad filter
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2018 / 09 / 7
◆ processAudioSample()
double SynthLab::TinyReson::processAudioSample |
( |
double |
xn, |
|
|
double |
loss = 1.0 |
|
) |
| |
|
inline |
run the filter
- Parameters
-
- Returns
- the filtered output
◆ reset()
void SynthLab::TinyReson::reset |
( |
double |
_sampleRate | ) |
|
|
inline |
◆ setParameters()
void SynthLab::TinyReson::setParameters |
( |
double |
_fc, |
|
|
double |
_Q |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: