Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 939 Bytes

README.md

File metadata and controls

21 lines (19 loc) · 939 Bytes

Music Score Generator for Piezo Buzzer

Description:

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

Usage:

  1. Input music score in music_score.csv
  2. run main.py -b <song bpm> -n <generated file name> -d <generated file location>
    • <song bpm> defaults to 60 bpm
    • <generated file name> defaults to music_score.cpp
    • <generated file location defaults to .\MusicNoteToBuzzer\data\
  3. Generates a .cpp file with music score generated in void play() method

Music score input guide

  • 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