pyminidsp¶
Python bindings to the miniDSP C library.
A comprehensive DSP toolkit providing signal generation, spectral analysis,
filtering, effects, and more. All functions accept and return
NumPy arrays (float64).
These are the kinds of building blocks you’d use in an audio processing pipeline — for example, estimating which direction a sound came from using a pair of microphones.
import pyminidsp as md
# Generate a 440 Hz sine wave (1 second at 44.1 kHz)
signal = md.sine_wave(44100, amplitude=1.0, freq=440.0, sample_rate=44100.0)
# Compute the magnitude spectrum
mag = md.magnitude_spectrum(signal)
# Apply a low-pass biquad filter
lpf = md.BiquadFilter(md.LPF, freq=1000.0, sample_rate=44100.0)
filtered = lpf.process_array(signal)
# Clean up FFT caches when done
md.shutdown()
Contents
- Installation
- Quick Start
- Guides
- Signal Generators
- Basic Signal Operations
- Window Functions
- Computing the Magnitude Spectrum
- Power Spectral Density
- Phase Spectrum
- STFT & Spectrogram
- Mel Filterbanks & MFCCs
- Pitch Detection
- FIR Filters & Convolution
- Simple Audio Effects
- DTMF Tone Detection & Generation
- Shepard Tone
- Spectrogram Text Art
- Audio Steganography
- API Reference
- Changelog