getFrameBank | R Documentation |
Internal soundgen function.
getFrameBank( sound, samplingRate, windowLength_points, wn, step, zp, normalize = TRUE, filter = NULL, padWithSilence = FALSE, timeShift = NULL )
sound |
numeric vector |
samplingRate |
sampling rate of |
windowLength_points |
length of fft window (points) |
wn |
window type accepted by |
step |
you can override |
zp |
window length after zero padding, points |
normalize |
if TRUE, scales input prior to FFT |
filter |
fft window filter (defaults to NULL) |
padWithSilence |
if TRUE, pads the sound with just enough silence to resolve the edges properly (only the original region is plotted, so the apparent duration doesn't change) |
timeShift |
time (s) added to timestamps |
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.
A matrix with nrow = windowLength_points/2
and ncol
depending on length(sound)
and step
a = soundgen:::getFrameBank(sin(1:1000), 16000, 512, 'gaussian', 15, 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.