diff --git a/examples/demos/onsets/src/core/audio-worker.js b/examples/demos/onsets/src/core/audio-worker.js index f40a805..8147b93 100644 --- a/examples/demos/onsets/src/core/audio-worker.js +++ b/examples/demos/onsets/src/core/audio-worker.js @@ -37,10 +37,7 @@ onmessage = function listenToMainThread(msg) { log('received analyse cmd') // const signal = new Float32Array(msg.data.audio); self.signal = msg.data.audio; - - if (self.fftRecomputeNeeded) { - computeFFT() - } + computeFFT(); self.onsetPositions = computeOnsets(); postMessage(self.onsetPositions);