June 27, 2016
Using an arduino bit we made a piano that plays a song using only one button.
It can play two notes at the same time, the melody line and an independent arpeggiated bass line where the chord transitions are synchronized with the melody.
There is one input button that advances the melody, and a knob that lets you control the speed of the bass line.
The melody and bass line are programmed into the arduino sketch, and I tried to make them easy to change to whatever you want.
In retrospect, if I had to start over again, I would ditch the Tone library, and try using the arduino to output an analog value which I would input into an oscillator bit. It would probably sound much better than attempting to do the synthesis directly onboard the arduino. It might be a little bit more fiddly getting the tuning right though, possibly the a-to-d doesn't have enough resolution, but I'd like to experiment with it some time.
Duration: A couple days worth of debugging arduino hardware timers. (Time to recreate given debugged code, 15min)
Credits: Rebecca & Penelope