Melody with Arduino

This code partly has its complication because I did not do it with a note. It all starts with a double, where we declare the notes and put what they are worth, then comes the melody, where we put the notes in song form, the next thing is to put the duration of each note in a noteduration and finally in the setup we put the duration between note and note and the port.

Video Example