getGlottalCycles: Divide f0 contour into glottal cycles

getGlottalCyclesR Documentation

Divide f0 contour into glottal cycles

Description

Internal soundgen function.

Usage

getGlottalCycles(pitch, samplingRate)

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). The first index is always 1.

Examples

# 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 documentation built on Aug. 22, 2023, 4:24 p.m.