Skip to content

codecaine-zz/sine_wave_audio_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sine Wave Music Generator

This Python program generates a simple melody using sine waves and plays it through the sound card. The program uses the NumPy and simpleaudio libraries to generate and play the audio signal.

Getting Started

To run the program, you will need to have Python 3 installed on your system, as well as the NumPy and simpleaudio libraries. You can install these libraries using pip by running the following command:

pip install simpleaudio numpy

or

pip install -r requirements.txt

Usage

To run the program, navigate to the project directory and execute the following command:

python sine_wave_music.py

The program will generate a melody using sine waves and play it through the sound card. You can modify the frequency and duration of each note by changing the values of notes_freq and duration in the code.

License This project is licensed under the MIT License. See the LICENSE file for details.

About

sine wave audio generation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages