// Turn on the buzzer at note A3
// Wait 38.1*t
// Turn off the buzzer.
// Wait 5.08*t.
// Turn on the buzzer at note A3.
// Wait 38.1*t.
//Turn off the buzzer.
//Wait 5.08*t
// Turn on the buzzer at note Fs3 (s is sharp)
// Wait 12.7*t
// Turn off the buzzer.
// Wait 5.08*t.
// Turn on the buzzer at note A3.
// Wait 12.7*t.
//Turn off the buzzer.
//Wait 12.7*t
// Turn on the buzzer at note B3
// Wait 12.7*t
// Turn off the buzzer.
// Wait 2.54*t.
// Turn on the buzzer at note C3.
// Wait 12.7*t.
//Turn off the buzzer.
//Wait 2.54*t
// Turn on the buzzer at note Fs3
// Wait 5.08*t
// Turn off the buzzer.
// Wait 5.08*t.
// Turn on the buzzer at note E3.
// Wait 43.18*t.
int buzz=3; //buzz is my buzzer, connected to pin 3
int R=0; //R= no sound (rest)
int t=25; //t is my block of time
int a3=110; //this is my number value for pitch a3
int b3=247; //this is my number value for pitch b3
int c3=131; //this is my number value for pitch c3
int e3=165; //this is my number value for pitch e3
int fs3=185; //this is my number value for pitch fs3 (s=sharp)
void setup()
{
pinMode(3, OUTPUT);
tone(buzz, a3);
delay(38.1*t);
tone(buzz,R);
delay(5.08*t);
tone(buzz, a3);
delay(38.1*t);
tone(buzz,R);
delay(5.08*t);
tone(buzz, fs3);
delay(12.7*t);
tone(buzz,R);
delay(5.08*t);
tone(buzz, a3);
delay(12.7*t);
tone(buzz,R);
delay(12.7*t);
tone(buzz, b3);
delay(12.7*t);
tone(buzz,R);
delay(2.54*t);
tone(buzz, c3);
delay(12.7*t);
tone(buzz,R);
delay(2.54*t);
tone(buzz, fs3);
delay(5.08*t);
tone(buzz,R);
delay(5.08*t);
}
void loop()
{
}