sound (version 1.4.5)

reverse: Play a Sample Object Backwards

Description

Returns the Sample object (or wav file) played backwards.

Usage

reverse(s)

Value

a Sample object with the same parameters but with the sound played backwards.

Arguments

s

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

Author

Author: tools:::Rd_package_author("sound")

Maintainer: tools:::Rd_package_maintainer("sound")

Examples

Run this code
if (FALSE) {
waveform <- 2*((seq(0,80,length=88200)%%1^2)-.5)
s <- as.Sample(waveform,44100,16)
play(s)
play(reverse(s)) # now played backwards
}

Run the code above in your browser using DataLab