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)

Author: Matthias Heymann <mail@MatthiasHeymann.de>

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

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 2, 2019, 2:10 a.m.

Related to reverse in sound...