Allows a music score to be played on an Arduino buzzer.
Converts a music score to buzzer frequencies and duration. Music score is converted to the
void play() method in the outputted .cpp file
- Input music score in
music_score.csv - run
main.py -b <song bpm> -n <generated file name> -d <generated file location><song bpm>defaults to 60 bpm<generated file name>defaults tomusic_score.cpp<generated file locationdefaults to.\MusicNoteToBuzzer\data\
- Generates a
.cppfile with music score generated invoid play()method
- Basic structure
<note><octave><flat, sharp (optional)> - input slurs as separate notes (buzzer cannot slur notes)
- input ties in on row, separate the notes with a "+"
- input ♭ as b
- input ♯ as #
- Example: "middle c" would appear as
C4