Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/changeSampRate.R
Downsample or upsample Wave
objects by specifying either a new sample rate or matching the sample rate of a different Wave
object. Optional adjustable dithering.
1 2 | changeSampRate(wchange, wkeep = NULL, sr.new = wkeep@samp.rate, dither = FALSE,
dith.noise = 32)
|
wchange |
Object of class |
wkeep |
Object of class |
sr.new |
Numerical sampling rate, if specified directly. |
dither |
Logical. |
dith.noise |
Adjustable dithering. If |
Both downsampling and upsampling are done by spline-fitting a curve to the waveform and resampling the resulting waveform. Artifacts from resampling are nearly guaranteed. Artifacts can be masked with dithering at a cost: dithering raises the amplitude of background noise but not signal.
An object of class Wave
with a modified sample rate.
Sasha D. Hafner, Jon Katz
1 2 3 | data(survey)
survey <- changeSampRate(wchange = survey, sr.new = 24000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.