powered by
This function generates a rectangle pulse.
pulsew(dbefore, dpulse, dafter, f, plot = FALSE, output = "matrix", ...)
If plot is FALSE, a new wave is returned. The class of the returned object is set with the argument output.
plot
FALSE
output
duration of the silent period before the pulse
duration of the pulse to generate
duration of silent period after the pulse
sampling frequency of the signal to be generated (in Hz)
logical, if TRUE returns an oscillographic plot of the pulse generated (by default FALSE).
TRUE
character string, the class of the object to return, either "matrix", "Wave", "Sample", "audioSample" or "ts".
"matrix"
"Wave"
"Sample"
"audioSample"
"ts"
other plot parameters.
Jerome Sueur sueur@mnhn.fr
synth, noisew
synth
noisew
pulsew(dbefore=0.5,dpulse=0.1,dafter=0.3,f=8000,plot=TRUE)
Run the code above in your browser using DataLab