Generate music score from audio sample using FFT

Politecnico di Torino

During my BSc degree, along with my two colleagues Maria Letizia Amoruso and Francesco Gallo, we devised an elementary way to obtain the music score starting from an audio sample played by a single instrument.

The two main challenges were:

  • Identifying the beginning and ending of each note
  • Identifying the pitch from the obtained sub-samples

In order to identify the beginning of each note it was sufficient to identify the local maximums. This was done using the envelope of the signal and the MATLAB utility findpeaks.

To find the pitch, an analysis using FFT was done on the obtained subsamples and we chose the maximum peak as the corresponding note.

The full explanation of the employed techniques can be found in the final paper