Last chance! 50% off unlimited learning
Sale ends in
lspec
produces image files with spectrograms of whole sound files split into multiple
rows.
lspec(X = NULL, flim = c(0,22), sxrow = 5, rows = 10, collev = seq(-40, 0, 1),
ovlp = 50, parallel = 1, wl = 512, gr = FALSE, pal = reverse.gray.colors.2,
cex = 1, it = "jpeg", flist = NULL, redo = TRUE, path = NULL, pb = TRUE)
manualoc
or any data frame with columns
for sound file name (sound.files), selection number (selec), and start and end time of signal
(start and end). If given, two red dotted lines are plotted at the
start and end of a selection and the selections are labeled with the selection number
(and selection comment, if available). Default is NULL
.spectro
. Default is c(0,22).spectro
. Default is 50. High values of ovlp
slow down the function but produce more accurate selection limits (when X is provided).FALSE
.spectro
for more palettes.TRUE
all selections will be analyzed again
when code is rerun. If FALSE
only the selections that do not have a image
file in the working directory will be analyzed. Default is FALSE
.NULL
(default) then the current working directory is used.TRUE
. Note that progress bar is only used
when parallel = 1.manualoc
are
supplied (or an equivalent data frame), the function delimits and labels the selections.
This function aims to facilitate visual inspection of multiple files as well as visual classification
of vocalization units and the analysis of animal vocal sequences.
## Not run:
# # First create empty folder
# setwd(tempdir())
# # save sound file examples
# data(list = c("Phae.long1", "Phae.long2","manualoc.df"))
# writeWave(Phae.long1,"Phae.long1.wav")
# writeWave(Phae.long2,"Phae.long2.wav")
#
# lspec(sxrow = 2, rows = 8, pal = reverse.heat.colors, wl = 300)
#
# # including selections
# lspec(sxrow = 2, rows = 8, X = manualoc.df, pal = reverse.heat.colors, redo = TRUE, wl = 300)
#
# check this floder
# getwd()
# ## End(Not run)
Run the code above in your browser using DataLab