View source: R/pitch_overlay.R
| pitch_overlay | R Documentation |
Function for overlaying pitch contour on another plot frame, viz. the
waveform or spectrogram. Instead of using this function directly, just use
praatpicture('my_sound_file') with pitch_plotOnSpec or pitch_plotOnWave
set to TRUE.
pitch_overlay(
pt,
bottomRange,
topRange,
start,
org_start = 0,
tfrom0 = TRUE,
freqRange = NULL,
plotType = "draw",
scale = "hz",
color = "black",
ind = NULL,
drawSize = 1,
speckleSize = 1,
axisLabel = NULL,
min_max_only = TRUE,
highlight = NULL,
intensity_overlay = FALSE
)
pt |
PitchTier object loaded using rPraat::pt.read or other object
formatted in a similar way, i.e. a |
bottomRange |
Bottom y-axis range of the plot frame that pitch is plotted on. |
topRange |
Top y-axis range of the plot frame that pitch is plotted on. |
start |
Start time (in seconds) of desired plotted area. |
org_start |
Start time (in seconds) of desired plotted area in the original sound file. |
tfrom0 |
Logical; should time on the x-axis run from 0 or from the
original time? Default is |
freqRange |
Vector of two integers giving the frequency range to be
used for producing pitch plots. Default is |
plotType |
String giving the type of pitch plot to produce; default
is |
scale |
String giving the frequency scale to use when producing
pitch plots. Default is |
color |
String giving the name of the color to be used for
plotting pitch. Default is |
ind |
Integer indexing current plot frame relative to other plot
components. Default is |
drawSize |
Number indicating the line width if
|
speckleSize |
Number indicating the point size of if |
axisLabel |
String giving the name of the label to print along the
y-axis when printing a pitch track. Default is |
min_max_only |
Logical; should only minimum and maximum values be given
on the y-axis? Default is |
highlight |
Named list giving parameters for differential
highlighting of pitch based on the time domain. This list
should contain information about which parts of the plot to highlight, either
done with the |
intensity_overlay |
Logical; is intensity also overlaid on the same
plot frame? Default is |
No return values, called internally by praatpicture and sibling functions.
# Don't use directly
datapath <- system.file('extdata', package='praatpicture')
soundFile <- paste0(datapath, '/1.wav')
praatpicture(soundFile, frames = 'spectrogram', pitch_plotOnSpec = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.