reverse | R Documentation |
Returns the Sample object (or wav file) played backwards.
reverse(s)
s |
a Sample object, or a string giving the name of a wav file. |
a Sample object with the same parameters but with the sound played backwards.
Author: Matthias Heymann [aut], Stefan Langenberg [cre] (<https://orcid.org/0000-0001-5817-5469>)
Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.