| revw {seewave} | R Documentation |
Reverse the wave along the time axis.
revw(wave, f, env = TRUE, ifreq = TRUE, plot = FALSE, Sample = FALSE, ...)
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. |
env |
logical, if TRUE the amplitude envelope is reversed. |
ifreq |
logical, if TRUE the instantaneous frequency is reversed. |
plot |
logical, if TRUE returns an oscillographic plot of
the reversed wave (by default FALSE). |
Sample |
logical, if TRUE and plot is FALSE
returns an object of class Sample |
... |
other oscillo graphical parameters. |
If plot is TRUE returns an oscillogram of the reversed
wave. The amplitude and the instantaneous frequency can be independently reversed
thanks to the arguments env and ifreq. See the examples.
If plot is FALSE, a new wave is returned as a one-column matrix
or as a Sample object if Sample is TRUE.
Jerome Sueur sueur@mnhn.fr
Beeman, K. 1998. Digital signal analysis, editing and synthesis in Hopp, S. L., Owren, M. J. and Evans, C. S. (Eds) 1998. Animal acoustic communication, pp. 59-103. Springer, Berlin, Heidelberg.
oscillo, addsilw, deletew,
fadew, pastew, mutew
data(tico) # simple reverse revw(tico,f=22050,plot=TRUE) # envelope reverse only revw(tico,f=22050,ifreq=FALSE, plot=TRUE) # instantaneous frequency reverse only revw(tico,f=22050,env=FALSE, plot=TRUE)