This Python script plays the song "Little Jonathan" using the sounddevice library. It uses the Beep function from the winsound library on Windows, and generates a sine wave on other platforms.
The song is defined as a string of notes and durations, separated by a hyphen.
- Python 3
- sounddevice library
- numpy library
- winsound library (for Windows)
Run the script using Python:
python3 play_little_jonathan.py
This will play the song "Little Jonathan".
Nof Shabtay
2024-06-03