zapsilw | R Documentation |
This function simply deletes the silence periods of a time wave.
zapsilw(wave, f, channel = 1, threshold = 5, plot = TRUE, output = "matrix", ...)
wave |
an R object. |
f |
sampling frequency of |
channel |
channel of the R object, by default left channel (1). |
threshold |
amplitude threshold (in %) between silence and signal. |
plot |
logical, if |
output |
character string, the class of the object to return, either
|
... |
other |
If plot
is FALSE
, a new wave is returned. The class
of the returned object is set with the argument output
.
Use the argument threshold
to set the level of silence. See
the examples
.
Jerome Sueur
afilter
, oscillo
data(orni)
zapsilw(orni,f=22050,colwave="red")
# setting the threshold value
zapsilw(orni,f=22050,threshold=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.