getGlottalCycles: Divide f0 contour into glottal cycles

Description Usage Arguments Details Examples

Description

Internal soundgen function.

Usage

1
getGlottalCycles(pitch, samplingRate = 44100)

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) and that maximum amplitude gives us the center of a glottal cycle. The first index is always 1.

Examples

1
2
3
# 100 ms of audio with f0 steadily increasing from 150 to 200 Hz
soundgen:::getGlottalCycles (seq(150, 200, length.out = 350),
  samplingRate = 3500)

tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.