Converting (extracting, joining) stereo to mono and vice versa
Functions to extract a channel from a stereo Wave
object,
and to join channels of two monophonic Wave
objects to a stereophonic one.
mono(object, which = c("left", "right", "both")) stereo(left, right)
object |
Object of class |
which |
Character, indicating whether the “left” or “right” channel should be extracted, or whether “both” channels should be averaged. |
left |
Object of class |
right |
Object of class |
For objects of WaveMC-class, a mono channel can be created by simple matrix indexing, e.g. WaveMCobject[,2]
selects the second channel.
An object of class Wave
.
If argument right
is missing in stereo
, a logical values is returned
that indicates whether left
is stereo (TRUE
) or mono (FALSE
).
Uwe Ligges ligges@statistik.tu-dortmund.de
Wobj <- sine(440) Wobj Wobj2 <- stereo(Wobj, Wobj) Wobj2 mono(Wobj2, "right")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.