Skip to main content

Module polyphase_integer_resampling

Module polyphase_integer_resampling 

Source
Expand description

Streaming rational-ratio resampling by polyphase filtering.

See the book entry Resampling: polyphase, half-band and CIC filters.

Structs§

PolyphaseIntegerResampler
Streaming rational-ratio polyphase resampler: upsample by up_rate, low-pass filter, keep every down_rate-th sample (up_rate / down_rate is reduced to lowest terms). The output equals SciPy’s upfirdn(up · h, x, up, down), the core of resample_poly, and arrives as soon as the inputs it needs have; flush emits the rest of the filter’s tail. Without explicit taps a Kaiser-window low-pass filter with cutoff 1 / max(up, down) of Nyquist and 60 dB attenuation is designed.