#include <biquad.hh>
Standard Biquad filters adapated from https://www.w3.org/TR/audio-eq-cookbook/.
- Parameters
-
[in] | signal | |
[in] | frequency | |
[in] | resonance | |
[out] | signal | |
◆ init()
void yase::Biquad::init |
( |
| ) |
|
|
virtual |
This method should be overridden by derived classes. It will usually be called once, after all modules and connections objects have been added to a synthesizer, but before the synthesizer starts running.
Implements yase::Module.
◆ off()
void yase::Biquad::off |
( |
| ) |
|
Turn the filter off. In it's off state, the input signal is routed directly to the output signal.
◆ recalculate()
void yase::Biquad::recalculate |
( |
| ) |
|
Recalculate the coefficients of the filter. Generally this is done automatically when the frequency or resonance input changes.
◆ set_type()
void yase::Biquad::set_type |
( |
std::string |
name | ) |
|
Set the type of the filter to be either low pass, high pass, all pass, or band pass.
- Parameters
-
name | Either "lpf", "hpf", "apf", or "bpf" |
◆ update()
void yase::Biquad::update |
( |
| ) |
|
|
virtual |
This method should be overridden by derived classes. It will be called repeatedly by a synthesizer at a frequency determined by SAMPLE_RATE.
Implements yase::Module.
The documentation for this class was generated from the following files: