JorenSix / TarsosDSP

A Real-Time Audio Processing Framework in Java
http://0110.be/tag/TarsosDSP
GNU General Public License v3.0
1.94k stars 471 forks source link

Can't capture any frequencies under 90Hz #131

Open ffpetrovic opened 7 years ago

ffpetrovic commented 7 years ago

Am I missing something? I've searched all over, and I can't find anyone complaining about this issue. This repo https://github.com/chRyNaN/Android-Guitar-Tuner uses your project, I've compiled his app and it can't capture anything under 90Hz. I've also tried implementing the code myself and I had the same problem. I used http://www.szynalski.com/tone-generator/ for the test.

JorenSix commented 7 years ago

Hi Please enlarge your buffer size to support this. If you want to detect low frequencies you need at least a couple of periods in one buffer. This means that the default buffer sizes could be too small. It also means that you only get a new pitch estimation after the large buffer is filled, so you get pitch updates less frequently. This is perhaps not a problem for a guitar tuner.

Good luck with your project!

ffpetrovic commented 7 years ago

Thanks!