powered by
Used to upsample a Wave object. The upsampled sample rate must be an natural multiple of the current sample rate.
upsample(wave, upsample.rate, method = "basic")
A resampled Wave object
Wave object to upsample.
The sample rate to upsample to.
"basic" for linear, or a function to interpolate NAs in a vector
wave <- tuneR::sine(4000, samp.rate=44100) wave2 <- upsample(wave, 88200)
Run the code above in your browser using DataLab