Does anybody know a good library that does pitch detection in the browser? Anything in Javascript or Webassembly would suffice. My target is mainly singing voices. I already tried pitchfinder, but for me it reports frequencies that are a half tone to low. Are there any alternatives other than implementing an alorithm your self?
Asked
Active
Viewed 388 times
0
-
i never listed code, but i have sorta illustrated an algorithm for pitch detection in a couple of different answers on this SE. – robert bristow-johnson Dec 31 '19 at 08:30
-
Hi Philipp, I'm sorry but asking for code written to a specification (here: pitch detection in the browser) is a bit off-topic here. General question: Doesn't Emscripten allow you to compile any C or C++ to WASM? – Marcus Müller Dec 31 '19 at 10:20
1 Answers
1
Try a samplerate of 48000 instead of 44100. Or vice versa.
hotpaw2
- 35,346
- 9
- 47
- 90
-
This kinda solved the issue for me. Pitchfinder by default uses a sample rate 44.1k while Chrome records with 48k. – Teresa Siegmantel Jan 07 '20 at 08:44