swipe
- libf0.swipe.swipe(x, Fs=22050, H=256, F_min=55.0, F_max=1760.0, dlog2p=0.010416666666666666, derbs=0.1, strength_threshold=0)[source]
Implementation of a sawtooth waveform inspired pitch estimator (SWIPE). This version of the algorithm follows the original implementation, see swipe_slim for a more efficient alternative.
- Parameters:
x (ndarray) – Audio signal
Fs (int) – Sampling rate
H (int) – Hop size
F_min (float or int) – Minimal frequency
F_max (float or int) – Maximal frequency
dlog2p (float) – resolution of the pitch candidate bins in octaves (default value = 1/96 -> 96 bins per octave)
derbs (float) – resolution of the ERB bands (default value = 0.1)
strength_threshold (float) – confidence threshold [0, 1] for the pitch detection (default value = 0)
- Returns:
f0 (ndarray) – Estimated F0-trajectory
t (ndarray) – Time axis
strength (ndarray) – Confidence/Pitch Strength
- libf0.swipe.pitch_strength_all_candidates(ferbs, loudness, pitch_candidates)[source]
Compute pitch strength for all pitch candidates
- libf0.swipe.pitch_strength_one(erbs_frequencies, normalized_loudness, pitch_candidate)[source]
Compute pitch strength for one pitch candidate
- libf0.swipe.interpolate_one_candidate(pitch_strength, ti, resampled_time)[source]
Interpolate time axis