The Arduino code for a "synth" I made once. It uses Mozzi.