Save a Sample object to disk as a wav file.
saveSample(s, filename, overwrite=FALSE)
a Sample object.
a string giving the path and the name of the destination file.
logical. If FALSE
and filename
already exists, an error will be reported. Otherwise the old file will be deleted.
Author: tools:::Rd_package_author("sound")
Maintainer: tools:::Rd_package_maintainer("sound")
loadSample
if (FALSE) {
s <- Sine(440,1)
saveSample(s,"sine.wav")
}
Run the code above in your browser using DataLab