powered by
This function resamples (down- or over-samples) a time wave. This corresponds to a sampling frequency change.
resamp(wave, f, g, channel = 1, output="matrix")
an R object.
sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.
wave
new sampling frequency of wave (in Hz).
channel of the R object, by default left channel (1).
character string, the class of the object to return, either "matrix", "Wave", "Sample", "audioSample" or "ts".
"matrix"
"Wave"
"Sample"
"audioSample"
"ts"
If plot is FALSE, a new wave is returned. The class of the returned object is set with the argument output.
plot
FALSE
output
# NOT RUN { data(peewit) # downsampling a<-resamp(peewit,f=22050,g=11025) # oversampling b<-resamp(peewit,f=22050,g=44100) # }
Run the code above in your browser using DataLab