Last chance! 50% off unlimited learning
Sale ends in
pastew(wave1, wave2, f, at = "end", choose = FALSE, plot = FALSE,
marks = TRUE, output = "matrix", ...)
wave
(in Hz). Does not need to be specified if embedded in wave
.wave2
position in seconds where wave1
will be pasted into.
Can be also specified as "start"
, "middle"
or "end"
.TRUE
the point where wave1
will
be pasted into wave2
(=at
) can be graphically chosen with a cursor.TRUE
returns an oscillographic plot of
wave1
, wave2
and wave1
+ wave2
(by default FALSE
).TRUE
shows where wave1
has been
pasted (by default TRUE
)."matrix"
, "Wave"
, "Sample"
, "audioSample"
or "ts"
.oscillo
graphical parameters.plot
is FALSE
, a new wave is returned. The class
of the returned object is set with the argument output
.plot
is TRUE
returns a two-frame plot with three waves:
(1) the wave to be pasted (wave1
),
(2) the wave to be completed (wave2
),
(3) the resulting wave.oscillo
, addsilw
, cutw
,
deletew
, fadew
, mutew
, revw
, repw
, zapsilw
data(tico)
# double a data set describing a bird song
a<-pastew(tico,tico,f=22050)
oscillo(a,f=22050)
# a direct way to see what has been pasted
pastew(tico,tico,f=22050,plot=TRUE)
# cut a section and then paste it at the beginning
a<-cutw(tico, f=22050, from=0.5, to=0.9)
pastew(a,tico,f=22050,at="start",plot=TRUE)
# or paste it at a specific location
pastew(a,tico,f=22050,at=1.4,plot=TRUE)
Run the code above in your browser using DataLab