{
# load example data from warbleR
data(list = c(
"Phae.long1", "Phae.long2", "Phae.long3", "Phae.long4",
"lbh_selec_table"
))
# save sound files to temporary folder
writeWave(Phae.long1, file.path(tempdir(), "Phae.long1.wav"))
writeWave(Phae.long2, file.path(tempdir(), "Phae.long2.wav"))
writeWave(Phae.long3, file.path(tempdir(), "Phae.long3.wav"))
writeWave(Phae.long4, file.path(tempdir(), "Phae.long4.wav"))
# make an extended selection table
est <- selection_table(
X = lbh_selec_table, extended = TRUE,
path = tempdir()
)
# create master sound file
master.sel.tab <- master_sound_file(
X = est, file.name = "example_master",
dest.path = tempdir(), gap.duration = 0.3
)
if (FALSE) {
# the following code exports the selection table to Raven
# using the Rraven package
Rraven::exp_raven(master.sel.tab, path = tempdir(),
file.name = "example_master_selection_table")
}
}
Run the code above in your browser using DataLab