
Generates a script for extracting the CoG, for use with processWithPraat
praatScriptCentreOfGravity.Rd
This function generates a Praat script fragment which can be passed as the praat.script parameter of processWithPraat, in order to extract one or more spectral centre of gravity (CoG) measurements.
Usage
praatScriptCentreOfGravity(powers = c(2), spectrum.fast = TRUE)
Value
A script fragment which can be passed as the praat.script parameter of processWithPraat
See also
Other Praat-related functions:
praatScriptFastTrack()
,
praatScriptFormants()
,
praatScriptIntensity()
,
praatScriptPitch()
,
processWithPraat()
Examples
if (FALSE) { # \dontrun{
## Perform a search
results <- getMatches(labbcat.url, list(segment="I"))
## Get centres of gravity for all matches
cog <- processWithPraat(
labbcat.url,
results$MatchId, results$Target.segment.start, results$Target.segment.end,
praatScriptCentreOfGravity(powers=c(1.0,2.0)))
} # }