Lab5 : DIY Piano
This week I learned more about tone function to play with melody. I used speaker and simple button to created a DIY piano. I got the tone from pitches.h library which converted the hertz into precisely musical note.
Understanding tone & note system
I understand the note system from a lab exercise which used pitches.h library to created an auto-played song. According to this exercise, I try to be creative by putting each note into one button in order to created a piano.
reference for pitches.h library : https://www.arduino.cc/en/Tutorial/ToneMelody?from=Tutorial.Tone