Internal soundgen function.
addPitchCands(
pitchCands,
pitchCert,
pitchSource,
pitch,
timestamps = NULL,
candPlot = list(),
pitchPlot = list(),
extraContour = NULL,
extraContour_pars = list(),
priorMean = NULL,
priorSD = NULL,
pitchFloor = NULL,
pitchCeiling = NULL,
addToExistingPlot = TRUE,
showLegend = TRUE,
y_Hz = FALSE,
yScale = c("orig", "bark", "mel")[1],
...
)
matrices of pitch candidates, their certainty, and pitch tracking method used as generated internally by analyze(); columns = STFT frames, rows = candidates
best guess at pitch contour; length = ncol(pitchCands)
lists of graphical settings for plotting candidates and pitch contour, respectively
another contour to add to the plot, such as harmHeight, Hz
if TRUE, assumes that a spectrogram is already plotted; if FALSE, sets up a new plot
if TRUE, shows a legend
if TRUE, plot in Hz, otherwise in kHz
other graphical parameters used for creating a new plot if addToExistingPlot = FALSE
Plots pitch candidates or adds them to a spectrogram.
if (FALSE) {
s = soundgen()
a = analyze(s, 16000, windowLength = 25, step = 25,
summary = 'extended', plot = FALSE)
spectrogram(s, 16000, windowLength = 25, step = 5)
addPitchCands(pitchCands = a$pitchCands,
pitchCert = a$pitchCert,
pitchSource = a$pitchSource,
pitch = a$result$pitch)
}
Run the code above in your browser using DataLab