Skip to content

Instantly share code, notes, and snippets.

@spara
Created February 15, 2012 03:11
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save spara/1832855 to your computer and use it in GitHub Desktop.
Save spara/1832855 to your computer and use it in GitHub Desktop.
Caterina's Fur Elise on Arduino
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);
}
@Rennakanote
Copy link

Cool !

@Jettypan
Copy link

Jettypan commented Nov 7, 2016

this is cool

@Jettypan
Copy link

Jettypan commented Nov 7, 2016

i like it

@indruto
Copy link

indruto commented Dec 15, 2016

can u fix the tempo? i think it must be fast than this for the tempo

@Pietruz3000
Copy link

I make another "Fur Elise"program, check it out https://gist.github.com/Pietruz3000/a03f8cb4ea993a609764279e2bcbdac7

@aaronhernan
Copy link

Wow! Increible version @Pietruz3000 It sounds amazing !

@AndersonGomesSilva
Copy link

Nice!!!!

@mahad-ahmed
Copy link

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