Learn R Programming

soundgen (version 1.7.0)

getPitchCep: Cepstral pitch tracker

Description

Internal soundgen function.

Usage

getPitchCep(
  frame,
  samplingRate,
  nCands,
  cepThres,
  cepSmooth,
  cepZp,
  pitchFloor,
  pitchCeiling
)

Arguments

frame

the abs spectrum of a frame, as returned by fft

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

cepThres

voicing threshold (unitless, ~0 to 1)

cepSmooth

the width of smoothing interval (Hz) for finding peaks in the cepstrum

cepZp

zero-padding of the spectrum used for cepstral pitch detection (final length of spectrum after zero-padding in points, e.g. 2 ^ 13)

pitchFloor

absolute bounds for pitch candidates (Hz)

pitchCeiling

absolute bounds for pitch candidates (Hz)

Value

Returns either NULL or a dataframe of pitch candidates.

Details

Attempts to find F0 of a frame by looking for peaks in the cepstrum. See http://www.phon.ucl.ac.uk/courses/spsci/matlab/lect10.html