rserota / wad

Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.
MIT License
1.88k stars 160 forks source link

requestAnimationFrame(logPitch) outputs infinite frame count #142

Closed dibyendu1 closed 1 year ago

dibyendu1 commented 2 years ago

When requestAnimationFrame(logPitch) is called while detecting pitch from the mic, it outputs infinite frame count and doesn't stop even after tuner.stopUpdatingPitch() . How to stop the frame count?

Additionally, how may pitch recognition start only when the input reaches a certain threshold and end instantly when the microphone receives no input?

rserota commented 1 year ago

I swear I was going to look into this, but it seems like the issue has resolved itself?