dot-getPitchZc: Zero-crossing rate per sound

.getPitchZcR Documentation

Zero-crossing rate per sound

Description

Internal soundgen function called by getPitchZc.

Usage

.getPitchZc(
  audio,
  pitchFloor,
  pitchCeiling,
  zcThres,
  zcWin = 5,
  silence = 0.04,
  env = NULL,
  envWin = 5,
  certMethod = c("autocor", "variab")[2]
)

Arguments

audio

a list returned by readAudio

pitchFloor, pitchCeiling

absolute bounds for pitch candidates (Hz)

zcThres

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)

zcWin

certainty in pitch candidates depends on how stable pitch is over zcWin glottal cycles (odd integer > 3)

silence

minimum root mean square (RMS) amplitude, below which pitch candidates are set to NA (NULL = don't consider RMS amplitude)

env

precalculated envelope (when called internally by .analyze())

envWin

window length for calculating RMS envelope, ms

certMethod

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


soundgen documentation built on Aug. 14, 2022, 5:05 p.m.