Last chance! 50% off unlimited learning
Sale ends in
Internal soundgen function
identifyAndPlay(
x,
y = NULL,
data = NULL,
audioFolder,
to = 5,
plot = FALSE,
pch = 19,
...
)
plot coordinates
dataframe from which x & y are taken, also containing a column called "file"
path to audio files
play only the first ... s
if TRUE, plots the index of clicked points
symbol for marking clicked points
other arguments passed to identify()
A wrapper around identify()
intended to play the sound corresponding
to a clicked point.
if (FALSE) {
msf = modulationSpectrum('~/Downloads/temp', plot = FALSE)
# Method 1: provide path to folder, leave data = NULL
plot(msf$summary$amFreq_median, msf$summary$amDep_median)
identifyPch(msf$summary$amFreq_median, msf$summary$amDep_median,
audioFolder = '~/Downloads/temp',
to = 2,
plot = TRUE,
pch = 19)
# Method 2:
plot(msf$summary$amFreq_median, msf$summary$amDep_median)
x = msf$summary$amFreq_median
y = msf$summary$amDep_median
identifyPch(x, y, data = msf$summary,
audioFolder = '~/Downloads/temp',
to = 2,
plot = FALSE,
pch = 8)
}
Run the code above in your browser using DataLab