A function which allows WAV files to be loaded into R.
Usage
loadsound (filename)
Arguments
filename
A string indicating the file name of the WAV file to be loaded. If no filename is provided, a dialog box will open allowing the user to select a file.
Value
An object of class 'sound', a list containing the elements:
filenamea vector containing the filename of the WAV file.
fsthe sampling frequency of the sound.
durationthe duration of the sound, in milliseconds.
sounda vector of numeric values representing the sampled sound.
Details
The function is only compatible with 8 and 16 bit WAV files. Only mono WAV files are supported. The function returns a 'sound object'. The following functions interact with 'sound' objects:
Ffilter()
FIRfilter()
loadsound()
makesound()
plot()
powertrack()
spectrogram()
vowelsynth()
writesound()