writeAudio | R Documentation |
Internal soundgen function.
writeAudio(x, audio, filename, scale_used = NULL)
x |
numeric vector |
audio |
list returned by |
filename |
full path and filename including .wav |
scale_used |
actually used scale (max(abs(x))) - overrides audio$scale_used |
Writes a .wav file to disk based on the bit/scale/samplingRate contained in
the internally generated audio
object. The point with using this
function is to package tuneR::Wave + normalize + writeWave in a
soundgen-specific way. Unlike seewave::savewav, writeAudio does NOT normalize
or rescale the input.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.