Expand description
Salient pitch candidates: the peaks of a pitch-salience curve for one frame.
Reuses crate::features::peaks::detect_peaks to pick local maxima of the
salience function produced by
crate::features::salience::pitch_salience, keeping only peaks above a
fraction of the frame’s strongest salience. These are the per-frame pitch
candidates that contour tracking later streams across time.
EPISTEMIC NOTE: the returned candidates are proposals — a polyphonic frame legitimately yields several. No monophonic collapse happens here.
Zero-heap hot path: the caller owns the output buffers; the reused
detect_peaks is itself allocation-free.
Functions§
- salient_
pitch_ peaks - Pick the salient pitch candidates (salience-curve peaks) of one frame.