Internal soundgen function called by getPitchZc
.
.getPitchZc(
audio,
pitchFloor,
pitchCeiling,
zcThres,
zcWin = 5,
silence = 0.04,
env = NULL,
envWin = 5,
certMethod = c("autocor", "variab")[2]
)
a list returned by readAudio
absolute bounds for pitch candidates (Hz)
absolute bounds for pitch candidates (Hz)
pitch candidates with certainty below this value are treated
as noise and set to NA (0 = anything goes, 1 = pitch must be perfectly
stable over zcWin
)
certainty in pitch candidates depends on how stable pitch is
over zcWin
glottal cycles (odd integer > 3)
minimum root mean square (RMS) amplitude, below which pitch candidates are set to NA (NULL = don't consider RMS amplitude)
precalculated envelope (when called internally by .analyze())
window length for calculating RMS envelope, ms
method of calculating pitch certainty: 'autocor' = autocorrelation of pitch estimates per zc over window (a measure of curve smoothness), 'variab' = variability of pitch estimates per zc over window