compute_e_p

Function compute_e_p 

Source
pub fn compute_e_p(pitch_est_buf: &[f32; 301]) -> [f32; 203]
Expand description

Compute IMBE’s E(p) detectability function for one 301-sample pitch-estimation buffer.

Returns 203 fractional values in [0, 1], one per candidate pitch index on the 0.5-sample grid 21.0 .. 122.0. A value near zero at index i means the signal is well-explained by a period of 21 + i·0.5 samples (plus its harmonic multiples).

Exposed so the encoder can maintain a ring of 3 E(p) arrays and hand them to PitchTracker::estimate_with_lookahead. The single-frame PitchTracker::estimate calls this internally.