powered by
Internal soundgen function
intplPitch(pitch, idx_unv = NULL)
numeric vector of pitch values (NA = unvoiced)
which(is.na(pitch))
Returns the same numeric vector with NAs filled in by interpolation.
Takes in a pitch contour and fills up the unvoiced gaps (NAs) by linear interpolation in the middle and constant interpolation at the ends. Called by pitchSmoothPraat().
# NOT RUN { soundgen:::intplPitch(c(NA, 405, 441, 460, NA, NA, NA, 480, 490, NA, NA)) # }
Run the code above in your browser using DataLab