saveSample: Save a Sample Object as a WAV File

Description Usage Arguments Author(s) See Also Examples

View source: R/sound.R

Description

Save a Sample object to disk as a wav file.

Usage

1
saveSample(s, filename, overwrite=FALSE)

Arguments

s

a Sample object.

filename

a string giving the path and the name of the destination file.

overwrite

logical. If FALSE and filename already exists, an error will be reported. Otherwise the old file will be deleted.

Author(s)

Author: Matthias Heymann <mail@MatthiasHeymann.de>

Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>

See Also

loadSample

Examples

1
2
3
4
5
## Not run: 
s <- Sine(440,1)
saveSample(s,"sine.wav")

## End(Not run)

sound documentation built on May 2, 2019, 2:10 a.m.

Related to saveSample in sound...