playlist | R Documentation |
This function works as a playlist, ie it plays back a list of sound files.
playlist(directory, sample = FALSE, loop = 1)
directory |
a character vector indicating the path to the directory where sound files to played are saved. |
sample |
a logical, if |
loop |
a numeric vector of length 1, number of loops. |
The success of using this function depends on the wave player in use. This works particularly well with SoX under Linux. The type of files (.mp3, .wav, .ogg etc) depends on the wave player as well)
None. Listen and enjoy!
The function is mainly based on play
Jérôme Sueur
play
, listen
## Not run:
playlist("MyMusic", sample = TRUE, loop=2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.