Description Usage Arguments Details Value Author(s) See Also Examples
Writing Wave files.
1 |
object |
Object of class |
filename |
Filename of the file to be written. |
extensible |
If |
It is only possible to write a non-extensible Wave format file for objects of class Wave
or
for objects of class WaveMC
with one or two channels (mono or stereo).
If the argument object
is a Wave-class object, the channels are automatically chosen to be
“FL” (for mono) or “FL” and “FR” (for stereo).
The channel mask used to arrange the channel ordering in multi channel Wave files is written
according to Microsoft standards as given in the data frame MCnames
containing the first 18 standard channels.
The function normalize
can be used to transform and rescale data to an appropriate amplitude range for
various Wave file formats (either pcm with 8-, 16-, 24- or 32-bit or IEEE_FLOAT with 32- or 64-bit).
writeWave
creates a Wave file, but returns nothing.
Uwe Ligges ligges@statistik.tu-dortmund.de, Sarah Schnackenberg
Wave-class, Wave
, WaveMC-class, WaveMC
, normalize
, MCnames
, readWave
1 2 3 4 5 6 7 8 9 | Wobj <- sine(440)
tdir <- tempdir()
tfile <- file.path(tdir, "myWave.wav")
writeWave(Wobj, filename = tfile)
list.files(tdir, pattern = "\\.wav$")
newWobj <- readWave(tfile)
newWobj
file.remove(tfile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.