f0Autocorr

maelzel.snd.freqestimate.f0Autocorr(sig, sr)[source]

Estimate frequency using autocorrelation

Parameters:
  • sig (ndarray) – a sampled signal

  • sr (int) – sample rate

Return type:

tuple[float, float]

Returns:

the frequency of the signal, the probability that the sound frequency is valid