Internal soundgen function called by shiftFormants
.shiftFormants(
audio,
multFormants,
freqWindow = NULL,
spec = NULL,
dynamicRange = 80,
windowLength = 50,
step = NULL,
overlap = 75,
wn = "gaussian",
interpol = c("approx", "spline")[1],
normalize = c("max", "orig", "none")[2],
play = FALSE
)
a list returned by readAudio
1 = no change, >1 = raise formants (eg 1.1 = 10% up, 2 =
one octave up), <1 = lower formants. Anchor format accepted (see
soundgen
)
the width of spectral smoothing window, Hz. Defaults to detected f0
precomputed spectrogram
dynamic range, dB. All values more than one dynamicRange under maximum are treated as zero
length of FFT window, ms (multiple values in a vector produce a multi-resolution spectrogram)
you can override overlap
by specifying FFT step, ms - a
vector of the same length as windowLength (NB: because digital audio is
sampled at discrete time intervals of 1/samplingRate, the actual step and
thus the time stamps of STFT frames may be slightly different, eg 24.98866
instead of 25.0 ms)
overlap between successive FFT frames, %
window type accepted by ftwindow
, currently
gaussian, hanning, hamming, bartlett, blackman, flattop, rectangle
the method for interpolating scaled spectra
"orig" = same as input (default), "max" = maximum possible peak amplitude, "none" = no normalization
if TRUE, plays the synthesized sound using the default player on
your system. If character, passed to play
as the name
of player to use, eg "aplay", "play", "vlc", etc. In case of errors, try
setting another default player for play