/* */
byte buzzer = 9;
void setup() {
pinMode(buzzer, OUTPUT);
}
void loop() {
Mi();delay(100);
La();delay(100);
La();delay(200);
Sol();delay(100);
Mi();delay(100);
Re();delay(100);
Do();delay(100);
Re();delay(100);
Mi();delay(200);
Re();delay(100);
Do();delay(100);
Laa();delay(200);
Diam();delay(1000);
}
void Do(){
tone(buzzer,262);
}
void Re(){
tone(buzzer,294);
}
void Mi(){
tone(buzzer,330);
}
void Fa(){
tone(buzzer,349);
}
void Sol(){
tone(buzzer,395);
}
void La(){
tone(buzzer,440);
}
void Si(){
tone(buzzer,494);
}
void DO(){
tone(buzzer,523);
}
void Diam(){
noTone(buzzer);
}
void Laa(){
tone(buzzer,440);
}