Allow to query Biquad coefficients
This commit is contained in:
parent
a91d515f5d
commit
cd6dca6063
@ -272,6 +272,8 @@ namespace ARDOUR { namespace DSP {
|
||||
|
||||
/** reset filter state */
|
||||
void reset () { _z1 = _z2 = 0.0; }
|
||||
|
||||
void coefficients (double& a1, double& a2, double& b0, double& b1, double& b2) const;
|
||||
private:
|
||||
void set_vicanek_poles (const double W0, const double Q, const double A = 1.0);
|
||||
void calc_vicanek (const double W0, double& A0, double& A1, double& A2, double& phi0, double& phi1, double& phi2);
|
||||
|
@ -212,6 +212,16 @@ Biquad::configure (double a1, double a2, double b0, double b1, double b2)
|
||||
_b2 = b2;
|
||||
}
|
||||
|
||||
void
|
||||
Biquad::coefficients (double& a1, double& a2, double& b0, double& b1, double& b2) const
|
||||
{
|
||||
a1 = _a1;
|
||||
a2 = _a2;
|
||||
b0 = _b0;
|
||||
b1 = _b1;
|
||||
b2 = _b2;
|
||||
}
|
||||
|
||||
void
|
||||
Biquad::configure (Biquad const& other)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user