powered by
This function simply deletes the silence periods of a time wave.
zapsilw(wave, f, channel = 1, threshold = 5, plot = TRUE, output = "matrix", ...)
an R object.
sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.
wave
channel of the R object, by default left channel (1).
amplitude threshold (in %) between silence and signal.
logical, if TRUE plots the orginal and the new oscillograms (by default TRUE).
TRUE
character string, the class of the object to return, either "matrix", "Wave", "Sample", "audioSample" or "ts".
"matrix"
"Wave"
"Sample"
"audioSample"
"ts"
other oscillo graphical parameters.
oscillo
If plot is FALSE, a new wave is returned. The class of the returned object is set with the argument output.
plot
FALSE
output
afilter, oscillo
afilter
# NOT RUN { data(orni) zapsilw(orni,f=22050,colwave="red") # setting the threshold value zapsilw(orni,f=22050,threshold=1) # }
Run the code above in your browser using DataLab