{
# set temporary directory
td <- tempdir()
# load example data
data("master_est")
# save example files in working director to recreate a case in which working
# with sound files instead of extended selection tables.
# This doesn't have to be done with your own data as you will
# have them as sound files already.
for (i in unique(test_sounds_est$sound.files)[1:2]) {
writeWave(object = attr(test_sounds_est, "wave.objects")[[i]], file.path(td, i))
}
# save master file
writeWave(object = attr(master_est, "wave.objects")[[1]], file.path(td, "master.wav"))
# set path and no progress bar in global options
options(sound.files.path = td, pb = FALSE)
# get marker position
markers <- find_markers(X = master_est, test.files = unique(test_sounds_est$sound.files)[2])
}
Run the code above in your browser using DataLab