pastew(wave1, wave2, f, at = FALSE, plot = FALSE, marks = TRUE, ...)
wave1
will be pasted.wave1
and wave2
.wave2
position in seconds
where wave1
will be pasted into (by default at the end of wave2
).TRUE
returns an oscillographic plot of
wave1
, wave2
and wave1
+ wave2
(by default FALSE
).TRUE
shows where wave1
has been pasted (by default TRUE
).oscillo
graphical parameters.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.cutw
, deletew
, mute
,
oscillo
, timer
.data(tico)
# double a data set describing a bird song
a<-pastew(tico,tico,f=22050)
oscillo(a,f=22050,k=1,j=1)
# 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,plot=TRUE)
# or paste it at the end
pastew(tico,a,f=22050,plot=TRUE)
# similar to
pastew(a,tico,f=22050,at=nrow(tico)/22050,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