Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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.

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)

Value

None. Listen and enjoy!

Note

The function is mainly based on play

Author(s)

Jérôme Sueur

See Also

Examples

## Not run: 
playlist("MyMusic", sample = TRUE, loop=2)

## End(Not run)

seewave

Sound Analysis and Synthesis

v2.1.6
GPL (>= 2)
Authors
Jerome Sueur <sueur@mnhn.fr> [cre, au], Thierry Aubin [au], Caroline Simonis [au], Laurent Lellouch [main ctrb], Ethan C. Brown [ctrb], Marion Depraetere [ctrb], Camille Desjonqueres [ctrb], Francois Fabianek [ctrb], Amandine Gasc [ctrb], Eric Kasten [ctrb], Stefanie LaZerte [ctrb], Jonathan Lees [ctrb], Jean Marchal [ctrb], Andre Mikulec [ctrb], Sandrine Pavoine [ctrb], David Pinaud [ctrb], Alicia Stotz [ctrb], Luis J. Villanueva-Rivera [ctrb], Zev Ross [ctrb], Carl G. Witthoft [ctrb], Hristo Zhivomirov [ctrb].
Initial release
2020-06-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.