
Internal soundgen function.
getFrameBank(sound, samplingRate, windowLength_points, wn, step, zp,
filter = NULL)
numeric vector
sampling rate of x
(only needed if
x
is a numeric vector, rather than a .wav file)
length of fft window (points)
window type: gaussian, hanning, hamming, bartlett, rectangular, blackman, flattop
you can override overlap
by specifying FFT step, ms
window length after zero padding, points
fft window filter (defaults to NULL)
A matrix with nrow = windowLength_points/2
and ncol
depending on length(sound)
and step
A subroutine of spec
that saves windowed (and optionally
zero-padded) frames, i.e. chunks of the sound file of the right size and
spacing. Handy for further processing.
# NOT RUN {
a = soundgen:::getFrameBank(sin(1:1000), 16000, 512, 'gaussian', 15, 0)
# }
Run the code above in your browser using DataLab