play | R Documentation |
Play a Sample object or a wav file, using the wav file play command returned by WavPlayer
, or any other specified command.
play(s, stay=FALSE, command=WavPlayer())
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. |
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: Matthias Heymann [aut], Stefan Langenberg [cre] (<https://orcid.org/0000-0001-5817-5469>)
Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>
## Not run:
s <- Sine(440,1)
play(s)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.