| afilter {seewave} | R Documentation |
This function deletes all signal which amplitude is below a selected threshold.
afilter(wave, f, threshold = 5, plot = TRUE, ...)
wave |
data describing the time wave
or a Sample object created loading a wav file
with loadSample (package Sound). |
f |
sampling frequency of wave (in Hz). |
threshold |
amplitude threshold (in %). |
plot |
logical, if TRUE plots the new oscillogram
(by default TRUE). |
... |
other oscillo graphical parameters. |
The threshold value is in % relative to the maximal value
of wave. Signal inferior to this value is clipped.
If plot is FALSE, afilter returns a one column
matrix with the new wave.
This function is used as an argument (threshold) in the
following functions: autoc, csh,
dfreq, timer and zc.
Jérôme Sueur jerome.sueur@univ-tours.fr
data(orni) op<-par(mfrow=c(2,1)) afilter(orni,f=22050) title(main = "threshold level = 5") afilter(orni,f=22050,threshold=0.5,colwave="blue") title(main = "threshold level = 0.5") par(op)