Learn R Programming

seewave (version 2.1.6)

addsilw: Add or insert a silence section

Description

Add or insert a silence section to a time wave.

Usage

addsilw(wave, f, channel = 1, 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.

channel

channel of the R object, by default left channel (1).

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.

See Also

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