noSilence: Cut off silence from a Wave object
Description
Cut off silence or low noise at the beginning and/or at the end of an object of class Wave
.Usage
noSilence(object, zero = 0, level = 0, where = c("both", "start", "end"))
Arguments
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 chann 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. Details
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.