Learn R Programming

nzilbb.labbcat (version 1.0-1)

praatScriptIntensity: Generates a script for extracting maximum intensity, for use with processWithPraat.

Description

This function generates a Praat script fragment which can be passed as the praat.script parameter of processWithPraat, in order to extract maximum intensity value.

Usage

praatScriptIntensity(minimum.pitch = 100, time.step = 0, subtract.mean = TRUE)

Arguments

minimum.pitch

Minimum pitch (Hz).

time.step

Time step in seconds, or 0.0 for 'auto'.

subtract.mean

Whether to subtract the mean or not.

Value

A script fragment which can be passed as the praat.script parameter of processWithPraat

See Also

processWithPraat

praatScriptFormants

praatScriptCentreOfGravity

praatScriptPitch

praatScriptFastTrack

Examples

Run this code
# NOT RUN {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"

## Perform a search
results <- getMatches(labbcat.url, list(segment="s"))

## Get intensity for all matches
intensity <- processWithPraat(
              labbcat.url,
              results$MatchId, results$Target.segment.start, results$Target.segment.end,
              praatScriptIntensity())
# }

Run the code above in your browser using DataLab