tuneR (version 1.3.3)

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.

Value

Wave object including channels specified by which.

Details

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

See Also

Wave, Wave-class, mono, extractWave