Fixed several bugs:
1. The number of notes played in the main loop
2. Fixed the citation of the head file to make the definiation of notes unified