loadsound | R Documentation |
A function which allows WAV files to be loaded into R.
loadsound (filename)
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. |
The function is only compatible with 8 and 16 bit mono WAV files. The function returns a 'sound object'. Many of the functions included in this package interact with 'sound' objects.
An object of class 'sound', a list containing the elements:
filename |
A vector containing the filename of the WAV file. |
fs |
The sampling frequency of the sound. |
duration |
The duration of the sound, in milliseconds. |
sound |
A vector of numeric values representing the sampled sound. |
Santiago Barreda <sbarreda@ucdavis.edu>
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
## Use the command below to select a WAV file to load into R
## sound = loadsound ()
## sound
## plot (sound)
## spectrogram (sound)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.