Learn R Programming

soundgen (version 2.5.0)

writeAudio: Write audio

Description

Internal soundgen function.

Usage

writeAudio(x, audio, filename)

Arguments

x

numeric vector

audio

list returned by readAudio containing samplingRate, bit, scale, scale_used

filename

full path and filename including .wav

Details

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.