Expand description
CREPE pitch head (P64, fail-closed) — AU-LEARNED.
CrepeHead estimates a fundamental frequency from a single audio frame using learned weights
loaded through the common fail-closed loader. With no weights it abstains
(BackendUnavailable) — it never returns a fabricated pitch. With a (possibly synthetic/test)
blob present it runs the CPU reference forward pass: a linear projection onto a bank of pitch
bins, an argmax over the bin activations, and the standard CREPE bin→frequency mapping.
Blob convention: dims = [num_bins, frame_len]. data is a row-major num_bins * frame_len
projection followed by num_bins biases. Per bin act_b = bias_b + Σ_i proj[b,i] * frame[i];
the argmax bin maps to a frequency via CREPE’s cents grid (bin 0 = CREPE_CENTS_BASE cents
above 10 Hz, CREPE_CENTS_STEP cents per bin). The forward pass is the hot path and allocates
nothing (streaming argmax over the caller’s frame buffer).
Structs§
- Crepe
Head - Learned CREPE pitch head. Fail-closed:
Absentstate ⇒ inference abstains.