Internal soundgen function.
a vector of fundamental frequency values
sampling rate at which f0 values are provided
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.
# 100 ms of audio with f0 steadily increasing from 150 to 200 Hz soundgen:::getGlottalCycles(seq(150, 200, length.out = 350), samplingRate = 3500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.