Learn R Programming

soundgen (version 2.7.2)

getPeakFreq: Get peak frequency

Description

Internal soundgen function for finding frequency modulation in pitch contours. Called by analyze().

Usage

getPeakFreq(x, samplingRate, freqRange = NULL, parab = TRUE, plot = FALSE)

Arguments

Examples

Run this code
if (FALSE) {
s = soundgen(sylLen = 1000, pitch = 500,
  vibratoFreq = c(6, 12), vibratoDep = 2,
  temperature = .001, addSilence = 5)
an = analyze(s, 16000, step = 5, windowLength = 25,
  plot = TRUE, yScale = 'bark')
plot(an$detailed$fmFreq, type = 'l')
}

Run the code above in your browser using DataLab