5 Arduino tone coding(small).jpg

The program splits the notes and the duration.