MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ biquad_notch()

MAYAFLUX_API void MayaFlux::Kinesis::Discrete::biquad_notch ( double  frequency,
double  q,
double  sample_rate,
std::vector< double > &  a,
std::vector< double > &  b 
)

Second-order notch coefficients.

Parameters
frequencyRejection frequency in Hz, clamped to (0, sample_rate/2)
qQuality factor; higher is narrower
sample_rateSampling rate in Hz
aDenominator output, resized to 3, a[0] == 1.0
bNumerator output, resized to 3

Definition at line 110 of file Coefficients.cpp.

112{
113 const auto t = terms(frequency, q, sample_rate);
114 emit(a, b,
115 1.0 + t.alpha, -2.0 * t.cosw0, 1.0 - t.alpha,
116 1.0, -2.0 * t.cosw0, 1.0);
117}
size_t a
size_t b
double frequency
double q

References a, b, frequency, and q.