Open tymbark opened 2 years ago
Hi, tymbark. Thank you for using the app.
In my experience, the environmental noise & thermal noise (roughly brown noise, i.e. 6 dB per octave) will interference the peak detection algorithm. Because the algorithm detect only the highest point in the spectrum. In a typical brown noise, the highest point is the lowest frequency.
In my mind, we have two ways to overcome it:
(a) auto or manually draw a line of noise, then feed the peak detection algorithm only the signal spectrum, i.e. the spectrum subtracted by the noise line. (b) let the algorithm detect only the local maximum.
But, as a "workaround", we can actually pick the dBA mode (the "dB" button below), which will strongly suppress the spectrum below 100Hz, and the peak measurement will be slightly more reliable.
Hi. Thank you for giving this cool project to the community.
I have compiled it and used the app with my piano to see how note detection works. I've seen two problems.
I'm thinking if note recognition could be improved. So A3 is not shown as A4 and few more low frequency notes are recognised. Can you suggest some improvement that I can do? I'm using
stft.maxAmpFreq
to see what note is it.