Learn R Programming

seewave (version 1.4.5)

revw: Time reverse of a time wave

Description

Reverse the wave along the time axis.

Usage

revw(wave, f, plot = FALSE, Sample = FALSE, ...)

Arguments

wave
data describing a time wave or a Sample object generated loading a wav file with loadSample (package sound).
f
sampling frequency of wave (in Hz). Does not need to be specified if wave is a Sample object.
plot
logical, if TRUE returns an oscillographic plot of the reversed wave (by default FALSE).
Sample
if TRUE and plot is FALSE returns an object of class Sample
...
other oscillo graphical parameters.

Value

  • If plot is FALSE, a new wave is returned as a one-column matrix or as a Sample object if Sample is TRUE.

Details

If plot is TRUE returns an oscillogram of the reversed wave.

See Also

oscillo, pastew, deletew, addsilw, revw, mute

Examples

Run this code
data(tico)
revw(tico,f=22050,plot=TRUE)

Run the code above in your browser using DataLab