pytimbre.utilities.yin.yin

pytimbre.utilities.yin.yin(x, Fs=22050, N=2048, H=256, F_min=55.0, F_max=1760.0, threshold=0.15, verbose=False)

Implementation of the YIN algorithm.

Parameters:
  • x (ndarray [shape=(L, )], real - valued) – Audio signal

  • Fs (int) – Sampling frequency

  • N (int) – Window size

  • H (int) – Hop size

  • F_min (float) – Minimal frequency

  • F_max (float) – Maximal frequency

  • threshold (float) – Threshold for cumulative mean normalized difference function

  • verbose (bool) – Switch to activate/deactivate status bar

Returns:

  • f0 (ndarray) – Estimated F0-trajectory

  • t (ndarray) – Time axis

  • ap (ndarray) – Aperiodicity (indicator for voicing: the lower, the more reliable the estimate)