Internal soundgen function
.resample(
audio,
mult = NULL,
len = NULL,
samplingRate_new = NULL,
lowPass = TRUE,
na.rm = FALSE,
plot = FALSE,
width = 900,
height = 500,
units = "px",
res = NA,
...
)
a list returned by readAudio
multiplier of sampling rate: new sampling rate = old sampling rate x mult, so 1 = no effect, >1 = upsample, <1 = downsample
if specified, overrides mult and samplingRate_new and simply
returns a vector of length len
an alternative to mult
provided that the old
samplingRate is know
(NB: mult
takes precedence)
if TRUE, applies a low-pass filter before decimating or after upsampling to avoid aliasing
if TRUE, NAs are interpolated, otherwise they are preserved in the output
should a spectrogram be plotted? TRUE / FALSE
graphical parameters for saving plots passed to
png
graphical parameters for saving plots passed to
png
graphical parameters for saving plots passed to
png
graphical parameters for saving plots passed to
png
other graphical parameters