noSilence {tuneR}R Documentation

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

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.

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.

Value

An object of class Wave.

Author(s)

Uwe Ligges, ligges@statistik.tu-dortmund.de, based on code from Matthias Heymann's former package ‘sound’.

See Also

silence, Wave-class, Wave, extractWave


[Package tuneR version 0.2-10 Index]