This module contains the complete code that implements the Piano Note Detection algorithm described on the preceding pages.
These are the files that contain the code that we used for this project. To run the entire program on a song, place all the files in the Matlab's current directory, and run convertsong(filename), where filename is the name of the wav file containing the song recording. The filename should be inside quotation marks "".
The main program
The main program. To run our entire algorithm on a song, run this file on it, giving only the file name as a parameter.
Note onset detection code
Our Matlab code for finding the times that notes were played at.
Frequency detection code
Our Matlab code for finding the frequencies of piano notes.
Frequency to note conversion code
Matlab code for converting frequencies into the corresponding notes.
Note length and tempo detection code
Our Matlab code for finding the lengths of all the notes and the tempo of the song.