revw {seewave}R Documentation

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.

Details

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

Value

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

Author(s)

Jerome Sueur sueur@mnhn.fr

See Also

oscillo, addsilw, deletew, fadew, pastew, mutew

Examples

data(tico)
revw(tico,f=22050,plot=TRUE)

[Package seewave version 1.4.8 Index]