Add function supposingly better for detection.
Debug functions.
Found and fix the reason of the strange results.
Prevent from detecting outside the tempo.
Remove debug.
Add structure for guessed note list.