Description Usage Arguments Details Value Author(s) See Also Examples
Get or set the number of channels of a Sample object or a wav file.
1 2 3 | channels(s)
channels(s) <- value
setChannels(s,value)
|
s |
a Sample object, or a string giving the name of a wav file. |
value |
1 for mono, or 2 for stereo. |
The replacement form can be used to reset the number of channels of a Sample object (here, filenames are not accepted).
If a mono sample is transformed into a stereo sample, each channel of the stereo sample equals the waveform of the mono sample. If a stereo Sample is transformed to a mono sample, (left(s)+right(s))/2
is returned.
For channels
, the number of channels of the sample (1 for mono, 2 for stereo).
For setChannels
, a Sample object with the new channels
parameter.
Author: Matthias Heymann <mail@MatthiasHeymann.de>
Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.