Skip to content

william-swy/MusicNoteToBuzzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Converts music score to a C++ file for arduino

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published