fadew | R Documentation |
This function applies a “fade in” and/or a “fade out” to a time wave following a linear, exponential or cosinus-like shape.
fadew(wave, f, channel = 1, din = 0, dout = 0, shape = "linear", plot = FALSE,
listen = FALSE, output = "matrix", ...)
wave |
an R object. |
f |
sampling frequency of |
channel |
channel of the R object, by default left channel (1). |
din |
fade in duration. |
dout |
fade out duration. |
shape |
fade shape, |
plot |
logical, if |
listen |
if |
output |
character string, the class of the object to return, either
|
... |
other |
If plot
is FALSE
, a new wave is returned. The class
of the returned object is set with the argument output
.
Jerome Sueur sueur@mnhn.fr
oscillo
, addsilw
, cutw
,
deletew
,mutew
, pastew
, revw
,
zapsilw
a<-noisew(d=5,f=4000)
op<-par(mfrow=c(3,1))
fadew(a,f=4000,din=1,dout=2,plot=TRUE,title="Linear",cexlab=0.8)
fadew(a,f=4000,din=1,dout=2,shape="exp",plot=TRUE,title="Exponential shape",
colwave="blue",coltitle="blue",cexlab=0.8)
fadew(a,f=4000,din=1,dout=2,shape="cos",plot=TRUE,title="Cosinus-like shape",
colwave="red",coltitle="red",cexlab=0.8)
par(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.