Skip to main content

qualia_audio/features/tonal/
mod.rs

1//! Tonal — real HPCP, tuning, key/scale, chord (declared assumptions, abstain).
2//!
3//! This module supersedes the fake `bin % 12` "chroma" that lived in `music.rs`:
4//! [`hpcp()`] performs a proper `log2`-based frequency → pitch-class mapping from
5//! spectral peaks. Every function that assumes 12-TET takes an explicit assumption
6//! flag and **abstains** rather than force a label — Qualia is modality-first and
7//! does not treat 12-TET as universal truth. Tuning (`ref_freq_hz` / `n_pc`) is a
8//! parameter throughout. Re-exports only (AU-TONAL).
9
10pub mod chord;
11pub mod hpcp;
12pub mod key;
13pub mod scale;
14pub mod tuning;
15
16pub use chord::{estimate_chord, ChordEstimate, ChordQuality};
17pub use hpcp::hpcp;
18pub use key::{estimate_key, KeyEstimate};
19pub use scale::{estimate_scale, ScaleEstimate, ScaleProposal};
20pub use tuning::{estimate_tuning, TuningEstimate};