Internal soundgen function, see flatSpectrum
.
.flatSpectrum(
audio,
freqWindow = NULL,
samplingRate = NULL,
dynamicRange = 80,
windowLength = 50,
step = NULL,
overlap = 90,
wn = "gaussian",
zp = 0,
play = FALSE,
saveAudio = NULL
)
a list returned by readAudio
the width of smoothing window, Hz. Defaults to median
pitch estimated by analyze
sampling rate of x
(only needed if x
is a
numeric vector)
dynamic range, dB. All values more than one dynamicRange under maximum are treated as zero
length of FFT window, ms
you can override overlap
by specifying FFT step, ms (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
window length after zero padding, points
if TRUE, plays the processed audio
full (!) path to folder for saving the processed audio; NULL = don't save, '' = same as input folder (NB: overwrites the originals!)