# NOT RUN {
# }
# NOT RUN {
#Calculate the ACI of all the wav
# files in the directory "/home/user/wavs/"
# using the function acoustic_complexity
multiple_sounds(directory = "/home/user/wavs/",
resultfile = "/home/user/results.csv",
soundindex = "acoustic_complexity")
#Calculate the same as above using 12000Hz as the
# maximum frequency instead of the default.
multiple_sounds(directory = "/home/user/wavs/",
resultfile = "/home/user/results.csv",
soundindex = "acoustic_complexity", max_freq = 12000)
#Calculate the same as above using two cores
multiple_sounds(directory = "/home/user/wavs/",
resultfile = "/home/user/results.csv",
soundindex = "acoustic_complexity", no_cores = 2)
#Calculate the same as above using all the cores
# the computer has
multiple_sounds(directory="/home/user/wavs/",
resultfile = "/home/user/results.csv",
soundindex = "acoustic_complexity", no_cores = "max")
#Calculate the same as above using all but one cores
multiple_sounds(directory = "/home/user/wavs/",
resultfile = "/home/user/results.csv",
soundindex = "acoustic_complexity", no_cores = -1)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab