{
# load data
data(list = c("Phae.long4", "Phae.long2", "lbh_selec_table2", "comp_matrix"))
# save sound files
writeWave(Phae.long4, file.path(tempdir(), "Phae.long4.wav"))
writeWave(Phae.long2, file.path(tempdir(), "Phae.long2.wav"))
# run cross-correlation
xc.output <- cross_correlation(
X = lbh_selec_table2, output = "list",
compare.matrix = comp_matrix, path = tempdir()
)
# find peaks
pks <- find_peaks(xc.output = xc.output, path = tempdir())
}
Run the code above in your browser using DataLab