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

Pitch detection not working #132

Closed animaone closed 3 years ago

animaone commented 3 years ago

The documentation sample provided don't show microphone pitch. Console is showing undefined

rserota commented 3 years ago

Pitch detection is working in the latest build, as far as I can tell. What OS and browser are you using? Can you verify that your microphone is picking up any input at all? Have you given your browser permission to use your microphone? If you haven't granted your browser permission to use your microphone, voice.play() will fail (note the comments in the sample in the docs). You might need to put voice.play() in a click event handler so you can delay that function call until after granting microphone permissions.

animaone commented 3 years ago

I don't think it is working. Even if I give permanent permission or if I put it in a click event, console.log still gives me an "undefined". tested in the last versions of firefox and chrome in linux.

ddaniel-gomez commented 2 years ago

It doesnt work for me either. In a simple test in w10/Chrome I get "undefined undefined" whatever I do :(

`

` Regards,