f0FFT

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

Estimate frequency from peak of FFT

Parameters:
  • sig (ndarray) – a sampled signal (mono)

  • sr (int) – sample rate

Return type:

tuple[float, float]

Returns:

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