reverse: Play a Sample Object Backwards

Description Usage Arguments Value Author(s) Examples

View source: R/sound.R

Description

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

Usage

1

Arguments

s

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

Value

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

Author(s)

Matthias Heymann

Examples

1
2
3
4
5
6
7
## Not run: 
waveform <- 2*((seq(0,80,length=88200)%%1^2)-.5)
s <- as.Sample(waveform,44100,16)
play(s)
play(reverse(s)) # now played backwards

## End(Not run)


sound documentation built on May 19, 2017, 8:37 p.m.
Search within the sound package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.