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

◆ biquad_allpass()

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

Second-order allpass coefficients.

Unity magnitude at all frequencies with frequency-dependent phase shift. Useful for phase manipulation and dispersion without spectral change.

Parameters
frequencyCentre of phase transition in Hz
qSharpness of the phase transition
sample_rateSampling rate in Hz
aDenominator output, resized to 3, a[0] == 1.0
bNumerator output, resized to 3

Definition at line 119 of file Coefficients.cpp.

121{
122 const auto t = terms(frequency, q, sample_rate);
123 emit(a, b,
124 1.0 + t.alpha, -2.0 * t.cosw0, 1.0 - t.alpha,
125 1.0 - t.alpha, -2.0 * t.cosw0, 1.0 + t.alpha);
126}
size_t a
size_t b
double frequency
double q

References a, b, frequency, and q.