zapsilw {seewave} | R Documentation |
This function simply delete the silence periods of a time wave.
zapsilw(wave, f, threshold = 5, plot = TRUE, Sample = FALSE, ...)
wave |
data describing the 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. |
threshold |
amplitude threshold (in %) between silence and signal. |
plot |
logical, if TRUE plots the orginal and the new oscillograms
(by default TRUE ). |
Sample |
if TRUE and plot is FALSE
returns an object of class Sample |
... |
other oscillo graphical parameters. |
If plot
is FALSE
, a new wave is returned as a one-column matrix
or as a Sample
object if Sample
is TRUE
.
Use the argument threshold
to set the level of silence. See
the examples
.
Jerome Sueur sueur@mnhn.fr
data(orni) zapsilw(orni,f=22050,colwave="red") # setting the threshold value zapsilw(orni,f=22050,threshold=1)