


You can use the sketches for anything, I only kindly ask that you give credit if you use these codes on a tutorial, video, example, etc.Vietnam is the easternmost country on the Indochina Peninsula in Southeast Asia. These scores are linked in each file when possible. Prince Igor - Borodin's Polovtsian DancesĮvery sketch here has been written by myself, although based on scores I found online or books I own.Zelda's Lullaby from The Legend of Zelda Ocarina of time.Song of stomrs from The Legend of Zelda Ocarina of time.Professor Layton's theme from Professor Layton and the Curious Village.Green Hill Zone from Sonic the Hedgehog.Pulo da gaita from the Brazilian Movie O Auto da Compadecida.You can test the piezo speaker with the "blink" example, the good piezo speaker will just click, while the other kind will play a pitch every other second. The passive kind functions like a speaker, reproducing the pitch you apply to it. The active one that plays a specific pitch when powevered and is not good for this purpose. There are two kinds of piezo buzzers: active and passive. Just remember to assign the pin number to the buzzer variable.

You can use basically any pin, as long as they can be used as digital pins (pins A6 and A7 of the Arduino Nano and mini are analog only).

Pin 11 is used in every sketch because some piezo speakers can be connected between it and the close GND pin without any wiring. Just connect an piezo to the board and you are good to go. However, in some cases notes will be tied together among measures or be dotted and this rule is broken. If you want to compare the code with the original score, I try to group the notes in a measure as one line of ccode and the staves as groups of lines. On the bright side, libraries are not required. The sketches rely solely on the tone() function from Arduino, so the sounds are all monophonic. UsageĮvery code here should run on every arduino board without problems.
