play: Play a Sample Object or a WAV File

Description Usage Arguments Details Author(s) Examples

View source: R/sound.R

Description

Play a Sample object or a wav file, using the wav file play command returned by WavPlayer, or any other specified command.

Usage

1
play(s, stay=FALSE, command=WavPlayer())

Arguments

s

a Sample object, or a string giving the name of a wav file.

stay

logical. If TRUE, the Windows Media Player won't be closed after playing the sample.

command

a character string giving the system command to be used for playing the sample.

Details

If s is a Sample object, it will be saved into a temporary folder before it is played. The temporary file will only be deleted afterwards if stay=FALSE.

Author(s)

Author: Matthias Heymann <[email protected]>

Maintainer: Stefan Langenberg <[email protected]>

Examples

1
2
3
4
5
## Not run: 
s <- Sine(440,1)
play(s)

## End(Not run)

sound documentation built on Nov. 17, 2017, 5:09 a.m.

Related to play in sound...