Created
February 15, 2012 03:11
-
-
Save spara/1832855 to your computer and use it in GitHub Desktop.
Caterina's Fur Elise on Arduino
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(10, OUTPUT); | |
} | |
void loop() { | |
// play e4 | |
delay(600); | |
tone(10, 329.63, 300); | |
delay(350); | |
// play d4# | |
tone(10, 311.13, 300); | |
delay(350); | |
// play e4 | |
tone( 10, 329.63, 300); | |
delay(350); | |
// play d4# | |
tone( 10,311.13, 300); | |
delay(350); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(350); | |
// play b3 | |
tone( 10, 246.94, 300); | |
delay(400); | |
// play d4 | |
tone(10, 293.66,300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63,300); | |
delay(400); | |
// play a3 | |
tone(10, 220, 900); | |
delay(1000); | |
// play d3 | |
tone(10,146.83, 300); | |
delay(350); | |
//play f3 | |
tone(10, 174.61, 300); | |
delay(400); | |
//play a3 | |
tone(10, 220, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 900); | |
delay(1000); | |
// play f3 | |
tone(10, 174.61, 300); | |
delay(400); | |
// play a3# | |
tone(10, 233.08, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 900); | |
delay(1000); | |
delay(300); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(400); | |
// play d4# | |
tone(10, 311.13, 300); | |
delay(400); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(400); | |
// play d4# | |
tone(10, 311.13, 300); | |
delay(400); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 300); | |
delay(400); | |
// play d4 | |
tone(10, 293.66, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 300); | |
delay(400); | |
// play a3 | |
tone(10, 220, 900); | |
delay(1000); | |
// play d3 | |
tone(10, 146.83, 300); | |
delay(400); | |
// play f3 | |
tone(10, 174.61, 300); | |
delay(400); | |
// play a3 | |
tone(10, 220, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 900); | |
delay(1000); | |
// play f3 | |
tone(10, 174.61, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 300); | |
delay(400); | |
// play a3 | |
tone(10, 220, 900); | |
delay(1000); | |
// play b3 | |
tone(10,246.94, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 300); | |
delay(400); | |
// play d4 | |
tone(10, 293.66, 300); | |
delay(400); | |
// play e4 | |
tone(10, 329.63, 900); | |
delay(1000); | |
// play g3 | |
tone(10, 196, 300); | |
delay(400); | |
// play f4 | |
tone(10, 349.23, 300); | |
delay(400); | |
//play e4 | |
tone(10, 329.23, 300); | |
delay(400); | |
// play d4 | |
tone(10, 293.63, 900); | |
delay(1000); | |
// play e3 | |
tone(10,164.81, 300); | |
delay(400); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(400); | |
// play d4 | |
tone(10, 293.63, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 900); | |
delay(1000); | |
// play d3 | |
tone(10, 146.83, 300); | |
delay(400); | |
// play d4 | |
tone(10, 293.63, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 900); | |
delay(1000); | |
delay(400); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(400); | |
// play d4# | |
tone(10, 311.13, 300); | |
delay(350); | |
// play e4 | |
tone( 10, 329.63, 300); | |
delay(350); | |
// play d4# | |
tone( 10,311.13, 300); | |
delay(350); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(350); | |
// play b3 | |
tone( 10, 246.94, 300); | |
delay(400); | |
// play d4 | |
tone(10, 293.66,300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63,300); | |
delay(400); | |
// play a3 | |
tone(10, 220, 900); | |
delay(1000); | |
// play d3 | |
tone(10,146.83, 300); | |
delay(350); | |
//play f3 | |
tone(10, 174.61, 300); | |
delay(400); | |
//play a3 | |
tone(10, 220, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 900); | |
delay(1000); | |
// play f3 | |
tone(10, 174.61, 300); | |
delay(400); | |
// play a3 | |
tone(10, 233.08, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 900); | |
delay(1000); | |
delay(300); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(400); | |
// play d4# | |
tone(10, 311.13, 300); | |
delay(400); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(400); | |
// play d4# | |
tone(10, 311.13, 300); | |
delay(400); | |
// play e4 | |
tone(10, 329.63, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 300); | |
delay(400); | |
// play d4 | |
tone(10, 293.66, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 300); | |
delay(400); | |
// play a3 | |
tone(10, 220, 900); | |
delay(1000); | |
// play d3 | |
tone(10, 146.83, 300); | |
delay(400); | |
// play f3 | |
tone(10, 174.61, 300); | |
delay(400); | |
// play a3 | |
tone(10, 220, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 900); | |
delay(1000); | |
// play f3 | |
tone(10, 174.61, 300); | |
delay(400); | |
// play c4 | |
tone(10, 261.63, 300); | |
delay(400); | |
// play b3 | |
tone(10, 246.94, 300); | |
delay(400); | |
// play a3 | |
tone(10, 220, 900); | |
delay(1000); | |
delay(5000); | |
} |
I make another "Fur Elise"program, check it out https://gist.github.com/Pietruz3000/a03f8cb4ea993a609764279e2bcbdac7
I tweaked the frequency a bit but the melody works great!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!!!!