You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get this working with my React app and I am running into the following issue.
I copied ./node_modules/realtime-bpm-analyzer/dist/realtime-bpm-processor.js into my public directory and followed the steps in the Continuous Analysis strategy.
Upon activation, I'm seeing the following error repeating in the console:
realtime-bpm-processor.js:330 ReferenceError: clearTimeout is not defined
at RealTimeBpmAnalyzer.<anonymous> (realtime-bpm-processor.js:260:11)
at Generator.next (<anonymous>)
at fulfilled (realtime-bpm-processor.js:7:26)
After learning about Audio Worklets, I think this might be a bug. If my understanding is correct, the processor runs in a separate execution context and does not have access to the DOM, therefore setTimeout/clearTimeout will not be available to the processor. Instead, the main thread has to be responsible for managing timers and triggering the stabilization by communicating with the worklet.
The text was updated successfully, but these errors were encountered:
I'm trying to get this working with my React app and I am running into the following issue.
I copied
./node_modules/realtime-bpm-analyzer/dist/realtime-bpm-processor.js
into my public directory and followed the steps in the Continuous Analysis strategy.Upon activation, I'm seeing the following error repeating in the console:
After learning about Audio Worklets, I think this might be a bug. If my understanding is correct, the processor runs in a separate execution context and does not have access to the DOM, therefore setTimeout/clearTimeout will not be available to the processor. Instead, the main thread has to be responsible for managing timers and triggering the stabilization by communicating with the worklet.
The text was updated successfully, but these errors were encountered: