View source: R/formants_utilities.R
| getFormants | R Documentation | 
Internal soundgen function
getFormants(
  audio,
  windowLength = 50,
  step = 25,
  wn = "gaussian",
  zp = 0,
  dynamicRange = 80,
  silence = 0.04,
  formants = list(),
  nFormants = NULL
)
| audio | input sound as returned by readAudio | 
| windowLength | length of FFT window, ms (multiple values in a vector produce a multi-resolution spectrogram) | 
| step | you can override  | 
| wn | window type accepted by  | 
| zp | window length after zero padding, points | 
| dynamicRange | dynamic range, dB. All values more than one dynamicRange under maximum are treated as zero | 
| silence | (0 to 1 as proportion of max amplitude) frames with RMS
amplitude below  | 
| formants | a list of arguments passed to
 | 
| nFormants | the number of formants to extract per STFT frame (0 = no formant analysis, NULL = as many as possible) | 
A barebones version of analyze() that only measures formants. Called by formant_app()
data(sheep, package = 'seewave')
f = soundgen:::getFormants(soundgen:::readAudio(sheep, from = .1, to = .5))
f[11:15, 1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.