Description Usage Arguments Details Value Examples

View source: R/utilities_soundgen.R

Internal soundgen function.

1 | ```
upsample(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)

1 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.