|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| 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.
| frequency | Cutoff in Hz, clamped to (0, sample_rate/2) |
| sample_rate | Sampling rate in Hz |
| taps | Kernel length; odd values give an integer group delay |
Definition at line 182 of file Coefficients.cpp.
References frequency.