Yeah the thing is that, I can't handle a note so far... For now, I mostly look for the highest peak of my spectrum and give its frequency.
It is really hard to get which note is played only with a sound spectrum. Even more when I have to take in account every music instruments that can be played on this tool... If it was that easy, indeed I would have done it.
I am no expert in music algorithm, and even when I tried to isolate a specific placement of peaks in order to register a note, I got results less precise than when I use the "highest peak" method sadly...
If I get new Ideas on how to precisely isolate a note from a spectrum I'll try to implement it, but so far, this is the most precise I can be... Sorry