Export sound data as a text file that can be read by a sound player like
'Goldwave'
Usage
export(wave, f = NULL, filename = NULL, header=TRUE, ...)
Arguments
wave
an R object.
f
sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.
filename
name of the new file. (by default the name of wave).
header
either a logical or a character vector,
if TRUE add a header to be read by Goldwave,
if FALSE does not add any header,
if a character vector add the character vector as a header.
Creates a new text file with a header describing the main features of the sound
(wave). For instance, for a 2 s sound with a sampling frequency of 8000 Hz,
the header will be: [ASCII 8000Hz, Channels: 1, Samples: 160000, Flags: 0].
This type of file can be read by sound players like
Goldwave (http://www.goldwave.com/).