rmam {seewave} | R Documentation |
This functions removes the amplitude modulation of a time wave through the Hilbert amplitude envelope.
rmam(wave, f, plot = FALSE, listen = 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. |
plot |
logical, if TRUE returns an oscillographic plot
of the nwe time wave (by default FALSE ). |
listen |
if TRUE the new sound is played back. |
Sample |
if TRUE and plot is FALSE
returns an object of class Sample |
... |
other oscillo graphical parameters. |
The new time wave is obtained by dividing the original time wave by its Hilbert amplitude envelope.
If plot
is FALSE
, a new time wave is returned as a
one-column matrix or as a Sample
object
if Sample
is TRUE
.
Jerome Sueur sueur@mnhn.fr
Mbu Nyamsi, R. G., Aubin, T. & Br�mond, J. C. 1994 On the extraction of some time dependent parameters of an acoustic signal by means of the analytic signal concept. Its application to animal sound study. Bioacoustics, 5: 187-203.
# generate a new sound with amplitude modulation a<-synth(f=8000, d=1, cf=1500, am=c(50,10)) # remove the amplitude modulation and plot the result rmam(a,f=8000,plot=TRUE)