View source: R/class_soundSample.R
listen | R Documentation |
Listen to a sound sample. Based on tuneR function 'play'
listen(x)
x |
sound sample object. |
nothing - listening function.
# Define sound sample
sam <- soundSample(sin(2*pi*seq(0,1,,44100)*440)+0.1*rnorm(44100)) # 1-second noisy A
## Not run:
# This line of code is wrapped in \dontrun{} since it relies
# on an external audio player to listen to the audio sample.
# See ?tuneR::setWavPlayer for setting a default player.
listen(sam)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.