Skip to main content

Module bands

Module bands 

Source
Expand description

Band-energy split: fixed Hz cutoffs over the linear FFT magnitudes into three mean energies — bass, mid, treble — for scenes and presets.

Pure and allocation-free after construction: the linear-bin range of each band is precomputed from the sample rate, and each split is an iterator mean over those bins, so the same magnitudes always yield the same triple (determinism, NFR 6).

Structs§

BandSplitter
Precomputed (lo, hi) linear-bin ranges (half-open) for the three bands.