getPitchCep: Cepstral pitch tracker

View source: R/pitchTrackers.R

getPitchCepR Documentation

Cepstral pitch tracker

Description

Internal soundgen function.

Usage

getPitchCep(
  frame,
  samplingRate,
  bin,
  nCands,
  cepThres,
  cepZp,
  pitchFloor,
  pitchCeiling,
  tol = 0.05,
  specMerge = 2/12
)

Arguments

frame

the abs spectrum of a frame, as returned by fft

samplingRate

sampling rate (Hz)

bin

spectrogram bin width, Hz

nCands

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

cepThres

voicing threshold (unitless, ~0 to 1)

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, pitchCeiling

absolute bounds for pitch candidates (Hz)

tol

tolerance when removing false subharmonics

specMerge

tolerance when removing similar candidates, oct

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

Value

Returns either NULL or a dataframe of pitch candidates and CPP.


soundgen documentation built on Sept. 12, 2024, 6:29 a.m.