getGlottalCycles: Divide f0 contour into glottal cycles
Description
Internal soundgen function.
Usage
getGlottalCycles(pitch, samplingRate)
Arguments
pitch
a vector of fundamental frequency values
samplingRate
sampling rate at which f0 values are provided
Details
Returns a vector of indices giving the borders between "glottal cycles",
assuming that we know the true f0 at each time point (as we do in synthesized
sounds). The first index is always 1.