addsilw {seewave}R Documentation

Add or insert a silence section

Description

Add or insert a silence section to a time wave.

Usage

addsilw(wave, f, at = "end", choose = FALSE, d = NULL,
plot = FALSE, output = "matrix", ...)

Arguments

wave an R object.
f sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.
at position where to add the silence section (in s). Can be also specified as "start", "middle" or "end".
choose logical, if TRUE the point where silence will be added into wave2 (=at) can be graphically chosen with a cursor.
d duration of the silence section to add (in s).
plot logical, if TRUE returns an oscillographic plot of wave with the new silence section (by default TRUE).
output character string, the class of the object to return, either "matrix", "Wave", "Sample", "audioSample" or "ts".
... other oscillo graphical parameters.

Value

If plot is FALSE, a new wave is returned. The class of the returned object is set with the argument output.

Author(s)

Jerome Sueur sueur@mnhn.fr

See Also

oscillo, cutw,deletew, fadew,pastew, mutew,revw, zapsilw


[Package seewave version 1.5.6 Index]