Every code here should run on every arduino board without problems. The sketches rely solely on the tone() function from Arduino, so the sounds are all monophonic. On the bright side, libraries are ...
Example code for creating musical New Year effects with Arduino and a piezo buzzer. #define NOTE_C4 262 #define NOTE_D4 294 #define NOTE_E4 330 #define NOTE_G4 392 #define NOTE_A4 440 #define NOTE_B4 ...