Used to upsample a Wave object. The upsampled sample rate must be an natural multiple of the current sample rate.
Details
Applied to a TaggedWave the call is recorded in the processing slot of
the result, as described in tagApply().
Interpolation between two samples lands between them, so where the wave declares integer PCM the interpolated samples are rounded to whole numbers. A floating point wave is interpolated without rounding.
Examples
wave <- tuneR::sine(4000, samp.rate=44100)
wave2 <- upsample(wave, 88200)
