detectMinFrequency¶
- maelzel.snd.freqestimate.detectMinFrequency(samples, sr, freqThreshold=30, overlap=4, lowAmpSuppression=0.1, refine=True)[source]¶
Detect the min. frequency in this audio sample
- Parameters:
samples (
ndarray
) – the samples to analyzesr (
int
) – the sample ratefreqThreshold – the lowest freq. to considere
overlap – the amount of overlap analysis per window
lowAmpSuppression – how much to supress low amplitudes
refine – if True, refine the freq and time data. This allows to performe a more coarse pass with a low overlap (for example, 4) and then a short pass with a higher overlap to obtain a more accurate value
- Return type:
tuple
[float
,float
]- Returns:
a tuple (min. freq, corresponding time) or (0., 0.) if no pitched sound was detected