Skip to main content

qualia_audio/features/rhythm/
mod.rs

1//! Rhythm — spectral-flux onset, autocorrelation tempogram, comb-filter beat
2//! tracking, and BPM histogram (AU-RHY). Real implementations replacing the
3//! energy-novelty / median-IOI placeholders in `music.rs`.
4//!
5//! Each leaf module owns exactly one public function over caller-supplied
6//! buffers (zero-heap hot path). This module re-exports only.
7//!
8//! Reuses (does not reimplement): `features::spectral::spectral_flux`,
9//! `features::peaks::{autocorrelation, detect_peaks}`.
10
11pub mod beat_tracker;
12pub mod bpm_histogram;
13pub mod spectral_flux_onset;
14pub mod tempogram;
15
16pub use beat_tracker::track_beats;
17pub use bpm_histogram::bpm_histogram;
18pub use spectral_flux_onset::onset_detection;
19pub use tempogram::{bpm_for_bin, tempogram};