weirdnet-dsp
Small, dependency-free DSP building blocks for Weirdnet audio crates, by Weird Brains. Pure functions and small state structs over f32 slices: no I/O, no audio types, no allocation in the per-block paths.
level: dB and linear conversion, peak and RMS.fade: linear and equal-power fades in place on interleaved audio.biquad: RBJ-cookbook biquads (low-pass, high-pass, band-pass, peaking) designed from a cutoff, Q and gain, with the exact frequency response (BiquadCoeffs::response_db) so a filter can be checked against its design.Biquadfilters one channel;MultiBiquadfilters interleaved audio with one state per channel.
use ;
let coeffs = design?;
let mut filter = new; // stereo
let mut block = vec!; // interleaved
filter.process_interleaved;
# Ok::
Designing a filter is checked: a zero sample rate, a cutoff at or above the Nyquist frequency, a non-positive Q and non-finite values are errors, not silent garbage.
Rust 1.99 or newer, edition 2024. BSD-3-Clause, Copyright (c) 2026, Weird Brains LLC.