View source: R/utilities_analyze.R
analyzeFrame  R Documentation 
Internal soundgen function.
analyzeFrame( frame, bin, freqs, autoCorrelation = NULL, samplingRate, scaleCorrection, loudness, cutFreq, trackPitch = TRUE, pitchMethods = c("dom", "autocor"), nCands, pitchDom = list(), pitchAutocor = list(), pitchCep = list(), pitchSpec = list(), pitchHps = list(), pitchFloor, pitchCeiling )
frame 
the abs spectrum of a frame, as returned by

bin 
spectrogram bin width, Hz 
freqs 
frequency per bin of spectrogram 
autoCorrelation 
precalculated autocorrelation of the input frame (computationally more efficient than to do it here) 
samplingRate 
sampling rate (Hz) 
loudness 
a list of parameters passed to 
cutFreq 
if specified, spectral descriptives (peakFreq, specCentroid,
specSlope, and quartiles) are calculated only between 
trackPitch 
if TRUE, attempt to find F0 in this frame (FALSE if entropy
is above some threshold  specified in 
pitchMethods 
methods of pitch estimation to consider for determining pitch contour: 'autocor' = autocorrelation (~PRAAT), 'cep' = cepstral, 'spec' = spectral (~BaNa), 'dom' = lowest dominant frequency band, 'hps' = harmonic product spectrum, NULL = no pitch analysis 
nCands 
maximum number of pitch candidates per method, normally 1...4
(except for 
pitchDom 
a list of control parameters for pitch tracking using the
lowest dominant frequency band or "dom" method; see details and

pitchAutocor 
a list of control parameters for pitch tracking using the
autocorrelation or "autocor" method; see details and

pitchCep 
a list of control parameters for pitch tracking using the
cepstrum or "cep" method; see details and 
pitchSpec 
a list of control parameters for pitch tracking using the
BaNa or "spec" method; see details and 
pitchHps 
a list of control parameters for pitch tracking using the
harmonic product spectrum or "hps" method; see details and

pitchFloor, pitchCeiling 
absolute bounds for pitch candidates (Hz) 
This function performs the heavy lifting of pitch tracking and acoustic analysis in general: it takes the spectrum of a single fft frame as input and analyzes it.
Returns a list with two components: $pitchCands_frame contains pitch candidates for the frame, and $summaries contains other acoustic predictors like HNR, specSlope, etc.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.