Learn R Programming

seewave (version 2.2.3)

playlist: Play a list of sound files

Description

This function works as a playlist, ie it plays back a list of sound files.

Usage

playlist(directory, sample = FALSE, loop = 1)

Value

None. Listen and enjoy!

Arguments

directory

a character vector indicating the path to the directory where sound files to played are saved.

sample

a logical, if TRUE the order of sounds files to be played back is shuffled.

loop

a numeric vector of length 1, number of loops.

Author

Jérôme Sueur

Details

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)

See Also

play, listen

Examples

Run this code
if (FALSE) {
playlist("MyMusic", sample = TRUE, loop=2)
}

Run the code above in your browser using DataLab