Description Usage Arguments Details Value
View source: R/utilities_analyze.R
Internal soundgen function.
1 2 3  getPitchSpec(frame, specSmooth, specHNRslope, bin, HNR = NULL, specThres,
specPeak, specSinglePeakCert, pitchFloor, pitchCeiling, specMerge,
nCands)

frame 
the real part of the spectrum of a frame, as returned by

specSmooth 
the width of window for detecting peaks in the spectrum, Hz 
specHNRslope 
when looking for putative harmonics in
the spectrum, the threshold for peak detection is calculated as

bin 
the width of spectral bin in 
HNR 
harmonicstonoise ratio returned by 
specThres 
(0 to 1) separate voicing thresholds for detecting pitch candidates with three different methods: autocorrelation, cepstrum, and BaNa algorithm (see Details). Note that HNR is calculated even for unvoiced frames. 
specPeak 
when looking for putative harmonics in
the spectrum, the threshold for peak detection is calculated as

specSinglePeakCert 
(0 to 1) if F0 is calculated based on a single
harmonic ratio (as opposed to several ratios converging on the same
candidate), its certainty is taken to be 
pitchFloor 
absolute bounds for pitch candidates (Hz) 
pitchCeiling 
absolute bounds for pitch candidates (Hz) 
specMerge 
pitch candidates within 
nCands 
maximum number of pitch candidates per method (except for

Attempts to find F0 of a frame by calculating ratios of putative harmonics (frequency domain analysis, ~ modified BaNa algorithm). See Ba et al. (2012) "BaNa: A hybrid approach for noise resilient pitch detection." Statistical Signal Processing Workshop (SSP), 2012 IEEE.
Returns either NULL or a dataframe of pitch candidates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.