halfband
A Rust library for resampling audio signals. Provides 2x up- and downsampling with an efficient polyphase design. These can be cascaded to get 4x, 8x etc.
Both FIR (windowed sinc) and IIR implementation are available. The IIR implementation is based on the HIIR library by Laurent De Soras, "an oversampling and Hilbert transform library in C++".
See examples/ for how to do 4x oversampling.
The FIR comes with preset coefficients for 19, 31, 47 and 63 taps.
TODO
- Provide presets for IIR (see
hiir/oversampling.txt) - Provide methods to compute total phase delay in samples
- Currently IIR only works with an even number of coefficients