Spuce
A DSP digital filtering library - IIR/FIR filtering
Install / Use
/learn @solanmevbot/SpuceREADME
spuce - A DSP Digital filtering library in C++
A rewrite of the digital filter components of SPUC with more testing, better code design and c++11 features.
- Uses std::complex instead of custom complex class
- Will focus of floating point instead of fixed-point modules
- Includes Chebyshev2 filter
- Bug fixes for odd order IIR filters
- Adding support for Bandpass and Bandstop designs for both IIR and FIR filters
Most of spuc was written many years ago before C++ compilers had good template support and was primarily written for fixed-point hardware design and simulation.
Currently there is some code for IIR Filter Design & Implementation
- Butterworth
- Chebyshev
- Inverse Chebyshev
- Elliptic
- Maximally flat FIR
- Remez Equiripple
- Raised Cosine FIR/Root Raised Cosine FIR
- Gaussian FIR
- Sinc FIR
- Cascaded Integrate Comb filters (or CIC filters)
- Notch filter
- Cut/Boost Filter
- Halfband/Subband IIR filters consisting of allpass sections
- Irrational resampling with Farrow & Lagrange based filters
To install via Homebrew
- brew tap audiofilter/spuce
- brew install spuce (or brew install -HEAD spuce for latest sources)
To install for Linux
The deb package is provided by the MyriadRF SDR Drivers PPA. The PPAs support the following Ubuntu releases:
- Trusty (14.04 LTS)
- Vivid (15.04)
- Wily (15.10)
Do the following to install on your Ubuntu system
- sudo add-apt-repository -y ppa:myriadrf/drivers
- sudo apt-get update
- sudo apt-get install libspuce-dev
For testing, python + matplotlib is used.
- Most of the test involve using python's matplotlib to show a frequency response of the filter, sometimes impulse responses are used
There are 4 QT apps for illustration purposes fir_plot, iir_plot, window_plot and other_plot
QT5 needed for test application
#Please see wiki pages for a Quick Guide to Digital Filters in Spuce
QT Apps

Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR

