Skip to main content

Crate reflow_dsp

Crate reflow_dsp 

Source
Expand description

Pure-Rust DSP primitives for Reflow audio/signal processing actors.

This crate is Wasm-safe — no system dependencies, no threads, no filesystem. All math is f32 for samples, f64 for coefficient precision.

§Features

  • simd — Enables hand-tuned SIMD paths:
    • aarch64: NEON for sample conversion, window apply, stereo interleave
    • x86_64: SSE2 for sample conversion, window apply

§Modules

  • biquad — Second-order IIR filters (LPF, HPF, BPF, notch, EQ, shelves)
  • envelope — Envelope detection and dynamics processing (compressor, gate)
  • db — Decibel ↔ linear conversion
  • sample — Sample format conversion (i16/i32/f32) and interleaving
  • window — Window functions (Hann, Hamming, Blackman, etc.)
  • ring_buffer — Fixed-capacity ring buffer for delay lines and windowed processing
  • fft — STFT processor with overlap-add (wraps rustfft/realfft)

Re-exports§

pub use realfft;
pub use rustfft;

Modules§

biquad
Biquad (second-order IIR) filter.
db
Decibel ↔ linear conversion utilities.
envelope
Envelope detector / follower.
fft
FFT / IFFT wrapper over realfft for real-valued audio signals.
ring_buffer
Fixed-size ring buffer for overlap-add, delay lines, and windowed processing.
sample
Sample format conversion and interleaving utilities.
window
Window functions for spectral analysis.