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

◆ sinc_lowpass()

MAYAFLUX_API std::vector< double > MayaFlux::Kinesis::Discrete::sinc_lowpass ( double  frequency,
double  sample_rate,
size_t  taps 
)

Windowed-sinc lowpass FIR coefficients.

Truncates the ideal lowpass impulse response to taps and applies a Hann taper. Transition width narrows as taps increases; stopband attenuation is set by the taper, not the length.

Returned in FIR tap order: index 0 multiplies the newest sample. Group delay is (taps - 1) / 2 samples.

Parameters
frequencyCutoff in Hz, clamped to (0, sample_rate/2)
sample_rateSampling rate in Hz
tapsKernel length; odd values give an integer group delay
Returns
Coefficient vector of length taps

Definition at line 182 of file Coefficients.cpp.

183{
184 return lowpass_kernel(frequency, sample_rate, force_odd(taps));
185}
double frequency

References frequency.