getPitchAutocor: Autocorrelation pitch tracker

Description Usage Arguments Details Value

View source: R/utilities_analyze.R

Description

Internal soundgen function.

Usage

1
2
getPitchAutocor(autoCorrelation, autocorSmooth = NULL, autocorThres,
  pitchFloor, pitchCeiling, samplingRate, nCands)

Arguments

autoCorrelation

pre-calculated autocorrelation of the input frame (computationally more efficient than to do it here)

autocorSmooth

the width of smoothing interval (in bins) for finding peaks in the autocorrelation function. Defaults to 7 for sampling rate 44100 and smaller odd numbers for lower values of sampling rate

autocorThres

(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.

pitchFloor

absolute bounds for pitch candidates (Hz)

pitchCeiling

absolute bounds for pitch candidates (Hz)

samplingRate

sampling rate (Hz)

nCands

maximum number of pitch candidates per method (except for dom, which returns at most one candidate per frame), normally 1...4

Details

Attempts to find F0 of a frame by looking for peaks in the autocorrelation function (time domain analysis). Modified PRAAT's algorithm. See Boersma, P. (1993). Accurate short-term analysis of the fundamental frequency and the harmonics-to-noise ratio of a sampled sound. In Proceedings of the institute of phonetic sciences (Vol. 17, No. 1193, pp. 97-110).

Value

Returns a list of $HNR (NA or numeric) and $pitchAutocor_array (either NULL or a dataframe of pitch candidates).


tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.