Learn R Programming

seewave (version 1.4.3)

addsilw: Add or insert a silence section

Description

Add or insert a silence section to a time wave.

Usage

addsilw(wave, f, at = "middle", d = FALSE, plot = FALSE, ...)

Arguments

wave
data describing a time wave or a Sample object generated loading a wav file with loadSample (package Sound).
f
sampling frequency of wave (in Hz). Does not need to be specified if wave is a Sample object.
at
position where to add the silence section (in s). Can be also specified as "start", "middle" or "end".
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).
...
other oscillo graphical parameters.

Value

  • New wave is returned as one-column matrix if plot is FALSE.

See Also

oscillo, cutw, pastew, deletew, mute

Examples

Run this code
data(tico)
addsilw(tico,f=22050,d=0.2)
addsilw(tico,f=22050,at="end",d=0.5)
addsilw(tico,f=22050,at=0.33,d=0.46)

Run the code above in your browser using DataLab