Skip to main content

qualia_audio/features/structure/
mod.rs

1//! Music structure analysis (AU-STRUCT) — self-similarity matrix, Foote novelty
2//! curve, and novelty-peak segmentation. This replaces the energy-hysteresis
3//! "structure" heuristic in `music.rs` with a real SSM + novelty approach.
4//!
5//! The caller supplies a per-frame feature matrix (e.g. from
6//! [`crate::features::mel::mfcc()`] or chroma / tonal features); these modules
7//! never recompute features. The frames²-sized SSM is written into a
8//! caller-provided buffer — see each function's caller-buffer contract.
9//!
10//! Re-exports only; each leaf module owns exactly one public function.
11
12pub mod novelty;
13pub mod segmentation;
14pub mod ssm;
15
16pub use novelty::novelty_curve;
17pub use segmentation::segment_boundaries;
18pub use ssm::self_similarity;