Expand description
Spectral descriptors (flux, HFC, rolloff, flatness, contrast, LPC, …).
Each leaf module owns exactly one public function over a caller-supplied spectrum slice, returning a scalar or writing into caller buffers (zero-heap hot path). Re-exports only (AU-SPEC-DESC).
Re-exports§
pub use complexity::spectral_complexity;pub use contrast::spectral_contrast;pub use energy_band::energy_band;pub use energy_band_ratio::energy_band_ratio;pub use flatness_db::spectral_flatness_db;pub use flux::spectral_flux;pub use frequency_bands::frequency_bands;pub use hfc::high_frequency_content;pub use log_spectrum::log_spectrum;pub use lpc::lpc;pub use lpc::MAX_LPC_ORDER;pub use panning::panning;pub use power_spectrum::power_spectrum;pub use rolloff::spectral_rolloff;
Modules§
- complexity
- Spectral complexity — count of significant peaks in a magnitude spectrum.
- contrast
- Spectral contrast — peak-vs-valley level (dB) per sub-band.
- energy_
band - Energy contained in a
[f_lo, f_hi]frequency band. - energy_
band_ ratio - Ratio of energy between two frequency bands.
- flatness_
db - Spectral flatness (Wiener entropy) of a magnitude/power spectrum.
- flux
- True per-bin spectral flux between two consecutive magnitude frames.
- frequency_
bands - Sum spectral energy into arbitrary caller-supplied frequency bands.
- hfc
- High-frequency content (HFC) of a magnitude spectrum.
- log_
spectrum - Log-magnitude spectrum into a caller buffer (dB).
- lpc
- Linear predictive coding (LPC) via Levinson-Durbin recursion.
- panning
- Stereo panning coefficient from a left/right pair (energy ratio).
- power_
spectrum - Power spectrum of a windowed real frame (magnitude spectrum, squared).
- rolloff
- Spectral rolloff frequency of a magnitude spectrum.