loadSample | R Documentation |
Load a wav file from disk and create a Sample object.
loadSample(filename, filecheck=TRUE)
filename |
a string giving the path and the name of the wav file. |
filecheck |
logical. If FALSE, no check for existance and read permission of the file will be performed. |
All kinds of wav files are supported: mono / stereo, 8 / 16 bits per sample, 1000 to 48000 samples/second.
the Sample object that is equivalent to the wav file.
filename
can also be a Sample object. In this case, the same object will be returned immediately. This can be useful when writing functions that accept both Sample objects and the names of a wav file as an argument. See is.Sample
for an example.
Author: Matthias Heymann [aut], Stefan Langenberg [cre] (<https://orcid.org/0000-0001-5817-5469>)
Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>
saveSample
, as.Sample
## Not run:
s <- loadSample("soundfile.wav")
play(s)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.