Learn R Programming

praatpicture (version 1.4.3)

praat_pitchRawAC: Estimate pitch using Praat's raw autocorrelation function

Description

Estimate pitch using Praat's raw autocorrelation function

Usage

praat_pitchRawAC(
  sound,
  output = "ssff",
  timeStep = NULL,
  floor = 75,
  ceiling = 600,
  maxNoCandidates = 15,
  gaussianWindow = FALSE,
  silenceThreshold = 0.03,
  voicingThreshold = 0.45,
  octaveCost = 0.01,
  octaveJumpCost = 0.35,
  voicedUnvoicedCost = 0.14
)

Value

List in the SSFF format or data frame with estimated pitch.

Arguments

sound

String giving the file name of a sound file with the .wav extension.

output

String giving the output format. Should be either ssff for the SSFF-style format used by wrassp (default) or df to output a data frame.

timeStep

Measurement interval in seconds. Default is NULL, in which case the measurement interval is equal to 0.75 / pitch_floor.

floor

Frequency in Hz; no pitch candidates considered below this frequency. Default is 75.

ceiling

Frequency in Hz; no pitch candidates considered above this frequency. Default is 600.

maxNoCandidates

Integer giving the maximum number of pitch candidates to estimate. Default is 15.

gaussianWindow

Logical; should Gaussian windows be used for estimating pitch? Default is FALSE, in which case Hanning windows are used.

silenceThreshold

Numeric giving the silence threshold when estimating pitch in terms of amplitude relative to the global maximum. Default is 0.01.

voicingThreshold

Numeric giving the voicing threshold when estimating pitch in terms of fractional strength in the autocorrelation function. Default is 0.14.

octaveCost

Numeric specifying how much high frequency pitch candidates should be favored in terms of fractional strength in the autocorrelation function. Default is 0.01.

octaveJumpCost

Numeric specifying how much pitch changes should be disfavored in terms of fractional strength in the autocorrelation function. Default is 0.35.

voicedUnvoicedCost

Numeric specifying how much transitions in voicing value should be disfavored in terms of fractional strength in the autocorelation function. Default is 0.14.

Examples

Run this code
if (FALSE) {
1+1
}

Run the code above in your browser using DataLab