noSilence {tuneR} | R Documentation |
Cut off silence or low noise at the beginning and/or at the end of an object of class Wave
.
noSilence(object, zero = 0, level = 0, where = c("both", "start", "end"))
object |
Object of class Wave . |
zero |
The zero level (default: 0) at which ideal cut points are determined (see Details).
A typical alternative would be 127 for 8 bit Wave objects.
If zero=NA , the mean of the left Wave channel is taken as zero level. |
level |
Values in the interval between zero and zero - level /zero + level
are considered as silence. |
where |
One of “both” (default), “start”, or “end”
indicating at where to prepare the Wave object for concatenation. |
Silcence is removed at the locations given by where
of the Wave
object,
where silence is defined such that (in both channels, if stereo) all values are in
the interval between zero
and zero - level
/zero + level
.
All values before (or after, respectively) the first non-silent value are removed from the object.
An object of class Wave
.
Uwe Ligges, ligges@statistik.tu-dortmund.de, based on code from Matthias Heymann's former package ‘sound’.
silence
, Wave-class, Wave
, extractWave