Skip to main content

estimate_chord

Function estimate_chord 

Source
pub fn estimate_chord(
    hpcp: &[f32],
    assumes_12tet: bool,
    min_score: f32,
) -> Result<Option<ChordEstimate>, AudioError>
Expand description

Propose a triad for a 12-bin HPCP frame.

  • hpcp: pitch-class profile (≥ 12 bins; bin 0 = C).
  • assumes_12tet: caller-declared assumption; false ⇒ abstain (Ok(None)).
  • min_score: coverage acceptance threshold (e.g. 0.8). Below it, abstain.

§Errors