Music-notes-detection
                                
                                
                                
                                    Music-notes-detection copied to clipboard
                            
                            
                            
                        This python code will detect the musical note present in a given instrument's audio file, Using Fast Fourier Transformation method
Music-notes-detection
This python code will detect the musical note present in a given instrument's audio file
Here I have used the fast Fourier transformation method to convert time frames to frequency frames. now the musical note frequency is found at the first peak of frequency-amplitude plot.
A fast Fourier transform (FFT) is an algorithm that computes the discrete Fourier transform (DFT) of a sequence, or its inverse (IDFT). Fourier analysis converts a signal from its original domain (often time or space) to a representation in the frequency domain and vice versa. (wikipedia)
Note that: This program can only be used for detecting a single note from a given wav file.
Raw Music file(Piano C4):

After Applying Normalisation:

- Applying Fast Fourier transformation on Note C4:
 

- Applying Fast Fourier transformation on Note C2:
 

- Applying Fast Fourier transformation on Note C6:
 

Run Code: 
$ python music_notes_detection.py
Star History
                                                                                                $ python music_notes_detection.py