pulse {seewave} | R Documentation |
This function generates a rectangle pulse.
pulse(dbefore, dpulse, dafter, f, plot = FALSE, Sample =FALSE, ...)
dbefore |
duration of the silent period before the pulse |
dpulse |
duration of the pulse to generate |
dafter |
duration of silent period after the pulse |
f |
sampling frequency of the signal to be generated (in Hz) |
plot |
logical, if TRUE returns an oscillographic plot of the
pulse generated (by default FALSE ). |
Sample |
if TRUE and plot is FALSE
returns an object of class Sample |
... |
other plot parameters. |
If plot
is FALSE
, a new wave is returned as a one-column matrix
or as a Sample
object if Sample
is TRUE
.
Jerome Sueur sueur@mnhn.fr
pulse(dbefore=0.5,dpulse=0.1,dafter=0.3,f=8000,plot=TRUE)