Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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);
}
@rnaka530

This comment has been minimized.

Copy link

commented Jan 25, 2014

Cool !

@Jettypan

This comment has been minimized.

Copy link

commented Nov 7, 2016

this is cool

@Jettypan

This comment has been minimized.

Copy link

commented Nov 7, 2016

i like it

@indruto

This comment has been minimized.

Copy link

commented Dec 15, 2016

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

@Pietruz3000

This comment has been minimized.

Copy link

commented Apr 16, 2017

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

@aaronhernan

This comment has been minimized.

Copy link

commented May 10, 2017

Wow! Increible version @Pietruz3000 It sounds amazing !

@AndersonGomesSilva

This comment has been minimized.

Copy link

commented Jul 15, 2019

Nice!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.