aiff2wav | R Documentation |
This function converts an object produced with readAiff
to a Wave-class object such as is generated with readWave
.
aiff2wav(aifsrc, makeMC = FALSE, ...)
aifsrc |
The source object. Must be of class "Aiff" as created with |
makeMC |
If TRUE, force the output to be of class |
... |
Reserved for future use |
Given that AIFF files are PCM encoded, the default value of the slot @pcm
is TRUE and remains untouched. The slots @bits, @samp.rate
are read from the source object. Note, however, that should the source bit-depth be a value unsupported by wave files, the function will exit with an error message.
For class "Wave" , the slot @stereo
is set to FALSE if the input is a vector or single column, and to TRUE if there are two columns.
A Wave or WaveMC object as defined in the tuneR
package.
Author and Maintainer:Carl Witthoft carl@witthoft.com
readAIFF
to load an AIFF file.
samp3 <- readAiff(system.file("extdata", "sample3.aif", package = "AIFFtools") )
samp3wav <- aiff2wav(samp3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.