Internal soundgen function.
.pitchDescriptives(
time,
pitch,
smoothBW,
inflThres,
extraSummaryFun = c(),
ref = 16.35,
plot = FALSE,
main = ""
)
a vector of time stamps in s
a vector of pitch values in Hz
a vector of bandwidths (Hz) for consecutive smoothing of
input using pitchSmoothPraat
; NA = no smoothing
minimum difference (in semitones) between consecutive
extrema to consider them inflections; to apply a different threshold at
each smoothing level, provide inflThres
as a vector of the same
length as smoothBW
; NA = no threshold
additional summary function(s) that take a numeric vector with some NAs and return a single number, eg c('myFun1', 'myFun2')
reference value for transforming Hz to semitones, defaults to C0 (16.35 Hz)
if TRUE, plots the inflections for manual verification