Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

channel

Channel conversion for Wave objects


Description

Convenient wrapper to extract one or more channels (or mirror channels) from an object of class Wave.

Usage

channel(object, which = c("both", "left", "right", "mirror"))

Arguments

object

Object of class Wave.

which

Character indicating which channel(s) should be returned.

Details

For objects of WaveMC-class, channel selection can be performed by simple matrix indexing, e.g. WaveMCobject[,2] selects the second channel.

Value

Wave object including channels specified by which.

Author(s)

See Also


tuneR

Analysis of Music and Speech

v1.3.3
GPL-2 | GPL-3
Authors
Uwe Ligges <ligges@statistik.tu-dortmund.de> with contributions from Sebastian Krey, Olaf Mersmann, Sarah Schnackenberg, Guillaume Guenard, Andrea Preusser, Anita Thieler, Johanna Mielke and Claus Weihs, as well as code fragments and ideas from the former package 'sound' by Matthias Heymann and functions from 'rastamat' by Daniel P. W. Ellis. The included parts of the libmad MPEG audio decoder library are authored by Underbit Technologies.
Initial release
2018-07-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.