upsampleGC {soundgen} | R Documentation |
Upsample glottal cycles
Description
Internal soundgen function.
Usage
upsampleGC(pitch_per_gc, samplingRate = 16000)
Arguments
pitch_per_gc |
a vector of fundamental frequencies per glottal cycle |
samplingRate |
target sampling rate after upsampling, in Hz |
Details
Upsamples a pitch contour to samplingRate through linear interpolation between successive glottal cycles.
Value
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)
Examples
soundgen:::upsampleGC(pitch_per_gc = c(100, 150, 130), samplingRate = 16000)
[Package soundgen version 2.7.0 Index]