The EqFilter class. A wrapper for the StereoBiQuad class, giving it freq, res, and gain controls. Used on a per channel per frame basis with recalculation of coefficents upon parameter changes. The intention is to use this as a bass class, children override the calcCoefficents() function, providing the coefficents a1, a2, b0, b1, b2.
More...
#include <EqFilter.h>
|
| virtual void | calcCoefficents () |
| | calcCoefficents Override this in child classes to provide the coefficents, based on Freq, Res and Gain
|
| void | setCoeffs (float a1, float a2, float b0, float b1, float b2) |
The EqFilter class. A wrapper for the StereoBiQuad class, giving it freq, res, and gain controls. Used on a per channel per frame basis with recalculation of coefficents upon parameter changes. The intention is to use this as a bass class, children override the calcCoefficents() function, providing the coefficents a1, a2, b0, b1, b2.
◆ EqFilter()
| lmms::EqFilter::EqFilter |
( |
| ) |
|
|
inline |
◆ calcCoefficents()
| virtual void lmms::EqFilter::calcCoefficents |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ setCoeffs()
| void lmms::EqFilter::setCoeffs |
( |
float | a1, |
|
|
float | a2, |
|
|
float | b0, |
|
|
float | b1, |
|
|
float | b2 ) |
|
inlineprotected |
◆ setFrequency()
| virtual void lmms::EqFilter::setFrequency |
( |
float | freq | ) |
|
|
inlinevirtual |
◆ setGain()
| virtual void lmms::EqFilter::setGain |
( |
float | gain | ) |
|
|
inlinevirtual |
◆ setParameters()
| virtual void lmms::EqFilter::setParameters |
( |
float | sampleRate, |
|
|
float | freq, |
|
|
float | res, |
|
|
float | gain ) |
|
inlinevirtual |
◆ setQ()
| virtual void lmms::EqFilter::setQ |
( |
float | res | ) |
|
|
inlinevirtual |
◆ setSampleRate()
| virtual void lmms::EqFilter::setSampleRate |
( |
int | sampleRate | ) |
|
|
inlinevirtual |
◆ update()
| float lmms::EqFilter::update |
( |
float | in, |
|
|
ch_cnt_t | ch, |
|
|
float | frameProgress ) |
|
inline |
update filters using two BiQuads, then crossfades, depending on on percentage of period processes
- Parameters
-
| in | |
| ch | |
| frameProgress | percentage of frame processed |
- Returns
◆ m_biQuadFrameInitial
◆ m_biQuadFrameTarget
◆ m_bw
| float lmms::EqFilter::m_bw |
|
protected |
◆ m_freq
| float lmms::EqFilter::m_freq |
|
protected |
◆ m_gain
| float lmms::EqFilter::m_gain |
|
protected |
◆ m_res
| float lmms::EqFilter::m_res |
|
protected |
◆ m_sampleRate
| float lmms::EqFilter::m_sampleRate |
|
protected |
The documentation for this class was generated from the following file:
- /home/runner/work/lmms-fork/lmms-fork/plugins/Eq/EqFilter.h