This project is a Python script for analyzing audio files and visualizing the top musical notes detected in the audio. It utilizes the Fast Fourier Transform (FFT) to convert audio from the time domain to the frequency domain and identifies prominent musical notes based on their amplitudes.
- Audio analysis and note detection.
- Visualization of the top musical notes in the order they are played.
- Visualization of the audio waveform.
Before you begin, ensure you have met the following requirements:
- Python 3.x
-
Clone this repository to your local machine:
git clone https://github.com/gtrtuugii/WAV-Notes-Converte.git
-
Change into the project directory:
cd WAV-Notes-Converter -
Run the script with your audio file:
python3 fft_wav.py your_audio_file.wav
Replace
your_audio_file.wavwith the path to your audio file. -
The script will analyze the audio, detect musical notes, and display visualizations.
You can configure the script by modifying the following parameters in main.py:
FPS: Frames per second for audio analysis.FFT_WINDOW_SECONDS: Window size in seconds for FFT analysis.- To determine the number of top musical notes to detect during the analysis you can adjust the
numparameter when calling thefind_top_notesfunction based on your specific analysis requirements.
# Example: Detect the top 5 notes
top_notes = find_top_notes(fft, num=5, xf=xf)- numpy - Numerical computing library for Python.
- matplotlib - Plotting library for Python.
- scipy - Scientific computing library for Python.
Feel free to contribute to this project by opening issues or pull requests.

