1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! `resonant-analysis` — high-level audio analysis features.
//!
//! Provides onset detection, beat tracking, pitch estimation, MFCCs,
//! chroma features, and spectral descriptors. All algorithms build on
//! the primitives in [`resonant-fft`] and [`resonant-core`].
//!
//! # Quick start
//!
//! ```
//! use resonant_analysis::spectral;
//!
//! let magnitudes = [0.1, 0.5, 1.0, 0.3];
//! let frequencies = [0.0, 500.0, 1000.0, 1500.0];
//!
//! let centroid = spectral::spectral_centroid(&magnitudes, &frequencies).unwrap();
//! let flatness = spectral::spectral_flatness(&magnitudes).unwrap();
//! ```
/// Chroma features — 12-bin pitch class profiles.
/// Key detection via Krumhansl-Schmuckler profiles.
/// Loudness analysis: RMS, peak, and crest factor.
/// LUFS measurement per ITU-R BS.1770-4.
pub
/// Mel-frequency cepstral coefficients (MFCCs).
/// Onset detection via spectral flux and adaptive thresholding.
/// Pitch estimation using the YIN algorithm.
/// Spectral feature extraction: centroid, spread, flatness, rolloff.
/// Tempo estimation via autocorrelation of onset strength envelope.
/// Time-stretching and pitch-shifting via STFT phase vocoder.
pub use AnalysisError;
pub use ;
pub use LoudnessAnalyser;
pub use ;