powered by
Play a Sample object or a wav file, using the wav file play command returned by WavPlayer, or any other specified command.
WavPlayer
play(s, stay=FALSE, command=WavPlayer())
a Sample object, or a string giving the name of a wav file.
logical. If TRUE, the Windows Media Player won't be closed after playing the sample.
a character string giving the system command to be used for playing the sample.
Author: tools:::Rd_package_author("sound")
Maintainer: tools:::Rd_package_maintainer("sound")
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.
s
stay=FALSE
if (FALSE) { s <- Sine(440,1) play(s) }
Run the code above in your browser using DataLab