MelodyFreq is a simple note frequency calculator and audio playback tool.
You can input musical notes (e.g., C4, Db6), and the program will calculate the frequency of the note and play the sound at that frequency.
You can also customize the volume and playback duration.
1.Calculate the frequency of musical notes
2.Play sound at the specified frequency
3.Customize volume and playback duration
Clone this repository:
git clone https://github.com/XiaoBuHaly/MelodyFreq
pip install numpy sounddevice
pip install tkinter
pip install ctypes
pip install sounddevice
1.Run the main program: MelodyFreq.py
2.Enter a musical note (e.g., C4, Db6) and press Enter to calculate the frequency.
3.Enter the volume (between 0 and 1) and duration (in seconds).
4.Click the "Play Sound" button to play the sound.
MelodyFreq.py: Main program file
config.py: Configuration file containing constants and note mappings
Contributions are welcome! Please fork this repository and submit a pull request.