Skip to content

XiaoBuHaly/MelodyFreq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MelodyFreq

Introduction

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.

Features

1.Calculate the frequency of musical notes

2.Play sound at the specified frequency

3.Customize volume and playback duration

Installation

Clone this repository:

git clone https://github.com/XiaoBuHaly/MelodyFreq

Install dependencies:

pip install numpy sounddevice
pip install tkinter
pip install ctypes
pip install sounddevice

Usage

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.

File Structure

MelodyFreq.py: Main program file

config.py: Configuration file containing constants and note mappings

Contributing

Contributions are welcome! Please fork this repository and submit a pull request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages