f0curvePyin¶
- maelzel.snd.freqestimate.f0curvePyin(sig, sr, minfreq=50, maxfreq=5000, framelength=2048, winlength=None, hoplength=512)[source]¶
Calculate the fundamental based on the pyin method
This routine is implemented in pure python and is VERY slow
- Parameters:
sig (
ndarray
) – the array representing the soudsr (
int
) – sample rateminfreq – lowest frequency to considere for f0
maxfreq – highest frequecy to considere for f0
framelength – the fft size
winlength – the window length (must be smaller than framelength)
hoplength – interval between measurements (in samples)
- Return type:
tuple
[BpfInterface
,BpfInterface
]- Returns:
a tuple (freq curve, voiced probability curve)