Time lapse
Append successive input sounds into a single output sound
timelapse(dir, from = 1, to = Inf,
units = c("samples", "seconds", "minutes", "hours"), verbose = TRUE)dir |
a character vector, the path to the directory where the .wav files are stored or directly the names of the .wav files to be appended. |
from |
where to start reading the input files, in |
to |
where to stop reading, in |
units |
time units in which |
verbose |
a logical, if |
The function takes the .wav files which names are provided in the
argument dir and append (paste) them successively so that a single object
is obtained. This can be used to produce sound time lapse based on a series
of ordered files as those produced by an automatic recorder
(e.g. SongMeter of the society 'Wildlife Acoustics').
Only a section of each file can be extracted by using the arguments
from and to.
The function is based on readWave and bind of the package tuneR.
A Wave object, a class defined in the package tuneR.
The characteristics (sampling rate, number of bits, stereo/mono)
of the output object are those of the .wav file.
The files should be alphabatically ordered according to time to
ensure a proper time lapse.
You should use either savewav or writeWave to save the results as a .wav file.
Jérôme Sueur
## Not run: ## if 'dir' contains a set of files recorded with a Wildlife Acoustics # songmeter recorder then a direct way to obtain # the spectrogram of all .wav files is dir <- "pathway-to-directory-containing-wav-files" res <- timelapse(dir) # to extract a selection of each file (here a section starting # at 10 s and ending at 12 s) res <- timelapse(dir, from=10, to=12, unit="seconds") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.