View source: R/soundgen_utilities.R
upsampleGC | R Documentation |
Internal soundgen function.
upsampleGC(pitch_per_gc, samplingRate = 16000)
pitch_per_gc |
a vector of fundamental frequencies per glottal cycle |
samplingRate |
target sampling rate after upsampling, in Hz |
Upsamples a pitch contour to samplingRate through linear interpolation between successive glottal cycles.
Returns a list of two vectors: pitch_upsampled (the upsampled version of the input) and gc_upsampled (new indices of glottal cycles on an upsampled scale)
soundgen:::upsampleGC(pitch_per_gc = c(100, 150, 130), samplingRate = 16000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.