emupicture: Make Praat Picture style plots in EMU

View source: R/emupicture.R

emupictureR Documentation

Make Praat Picture style plots in EMU

Description

Generate plots in the style of Praat Pictures from sound files and annotations in an EMU database.

Usage

emupicture(
  db_handle,
  session = "0000",
  bundle,
  pitch_ssffExt = NULL,
  formant_ssffExt = NULL,
  intensity_ssffExt = NULL,
  talking = FALSE,
  ...
)

Arguments

db_handle

The handle of an EMU database loaded into R.

session

String giving the name of the session where the sound file to plot is located. Default is 0000.

bundle

String giving the name of the bundle with the sound file to plot.

pitch_ssffExt

String giving the file extension for an SSFF track with pitch data to plot. Default is NULL.

formant_ssffExt

String giving the file extension for an SSFF track with formant data to plot. Default is NULL.

intensity_ssffExt

String giving the file extension for an SSFF track with intensity data to plot. Default is NULL.

talking

Boolean; should a video be created with embedded audio, as when using talking_praatpicture? Default is FALSE.

...

Further arguments passed to praatpicture (or talking_praatpicture if talking = TRUE).

Value

No return value, produces a plot or a video.

See Also

See praatpicture for more details on how to customize plots and talking_praatpicture for more details on how to customize videos.

Examples


# Create demo data and load demo database
emuR::create_emuRdemoData(tempdir())
db_path <- paste0(tempdir(), '/emuR_demoData/ae_emuDB')
db <- emuR::load_emuDB(db_path)

emuR::list_bundles(db)
emupicture(db, bundle='msajc003', tg_tiers=c('Text', 'Tone'))

# Plot SSFF track data

emuR::list_ssffTrackDefinitions(db)
emupicture(db, bundle='msajc003', frames=c('sound', 'formant'),
proportion=c(30,70), formant_ssffExt='fms', formant_number=4)


praatpicture documentation built on April 4, 2025, 6:13 a.m.