upsample | R Documentation |
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")
wave |
Wave object to upsample. |
upsample.rate |
The sample rate to upsample to. |
method |
"basic" for linear, or a function to interpolate NAs in a vector |
A resampled Wave object
wave <- tuneR::sine(4000, samp.rate=44100)
wave2 <- upsample(wave, 88200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.