mirror: Mirror a Stereo Sample

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/sound.R

Description

Interchange the left and the right channel of a stereo Sample object or a stereo wav file.

Usage

1
mirror(s)

Arguments

s

a Sample object, or a string giving the name of a wav file.

Details

If s is a mono sample, it will be returned as it is.

Value

a Sample object, with the left and the right channel of s interchanged.

Author(s)

Author: Matthias Heymann <mail@MatthiasHeymann.de>

Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>

See Also

panorama for a command with more parameters, left and right for access to single channels of a sample.

Examples

1
2
3
4
5
6
## Not run: 
s <- stereo(Sine(440,1),Sine(220,1))
play(s)  # higher tone is on the left
play(mirror(s))  # now higher tone is on the right

## End(Not run)

sound documentation built on May 2, 2019, 2:10 a.m.

Related to mirror in sound...