3 var fft
= fft
= new FFT(frameBufferLength
/ channels
, rate
);
4 var bd
= new BeatDetektor();
5 var kick_det
= new BeatDetektor
.modules
.vis
.BassKick();
6 var vu
= new BeatDetektor
.modules
.vis
.VU();
8 var calcBeat = function() {
9 var fb
= getFramebuffer(), signal
= DSP
.getChannel(DSP
.MIX
, fb
);
13 var timestamp
= (new Date()).getTime();
14 bd
.process(timestamp
, fft
.spectrum
);
19 runTest(calcBeat
, iterations
);