left | R Documentation |
Extract either the left or the right channel of a stereo Sample object or a stereo wav file.
left(s)
right(s)
s |
a Sample object, or a string giving the name of a wav file. |
If s
is a mono sample, it will be returned as it is.
a Sample object containing the left or the right channel of s
.
Author: Matthias Heymann [aut], Stefan Langenberg [cre] (<https://orcid.org/0000-0001-5817-5469>)
Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>
stereo
for creating a stereo Sample object from two mono samples.
## Not run:
sLeft <- Sine(440,1)
sRight <- Sine(220,1)
s <- stereo(sLeft,sRight)
play(s)
play(left(s)) # only the left channel
play(right(s)) # only the right channel
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.