Expand description
Swarm M — foundational music features (assumptions declared).
Structs§
- Music
Assumptions - Declared analysis assumptions (never implicit universal truth).
- Onset
Event - Pitch
Estimate - Structure
Segment - Coarse structure segment (energy-change boundaries).
- Tempo
Estimate - Estimated tempo from inter-onset intervals (reference; not a production beat tracker).
Functions§
- chroma12_
from_ mel - Chroma-like 12-bin energy from log-mel (only if assumes_12tet).
- detect_
onsets - Spectral flux style onset detection on mono frames.
- estimate_
f0_ hz - F0 for one frame via the real YIN estimator (CMND + absolute threshold +
parabolic interpolation) in
features::pitch. Replaced the earlier coarse integer-lag argmin. Allocates a per-call difference-function scratch (this is the batch convenience path; the zero-heap path isfeatures::pitch::yin_pitchwith a caller-owned scratch). - estimate_
tempo_ from_ onsets - Estimates tempo from onsets.
- music_
class_ onset - Music-class onset.
- propose_
structure_ segments - Split mono into up to
out.len()energy-based segments (proposal only). - track_
pitch - Pitch track over successive frames (caller-buffered).