int sound= 4;
int ledA= 13;
int ledB= 12;
int ledC= 11;
int ledD= 10;
int ledE= 9;
int ledF= 8;
int ledG= 7;
int ledH= 6;


void setup(){
}

void loop(){
SOL(); delay(300); MI(); delay(300); SOL(); delay(300); MI(); delay(300);
MI(); delay(300); FA(); delay(300); SOL(); delay(500); FA(); delay(300);
RE(); delay(300); FA(); delay(300); LA(); delay(300); SOL(); delay(300);
FA(); delay(300); MI(); delay(300); LA(); delay(300); FA(); delay(300);
LA(); delay(300); FA(); delay(300); LA(); delay(300); SI(); delay(300);
DO(); delay(200); DOO(); delay(300); MI(); delay(300); SOL(); delay(300);
FA(); delay(300); RE(); delay(300); DO(); delay(500);

DIAM(); delay(500);
}
void DO() { 
  tone (sound, 262);
  if  (sound, 262) {
    digitalWrite( ledA, HIGH);
    delay (200);
    digitalWrite( ledA, LOW);
}
}
void RE() { 
  tone (sound, 294);
  if  (sound, 294)  {
    digitalWrite( ledB, HIGH);
    delay (200);
    digitalWrite( ledB, LOW);
    
}
}
void MI() { 
  tone (sound, 330);
  if  (sound, 330) {
    digitalWrite( ledC, HIGH);
    delay (200);
    digitalWrite( ledC, LOW);
}
}
void FA() { 
  tone (sound, 349);
  if  (sound, 349) {
    digitalWrite( ledD, HIGH);
    delay (200);
    digitalWrite( ledD, LOW);
}
}
void SOL() { 
  tone (sound, 395);
  if  (sound, 395) {
    digitalWrite( ledE, HIGH);
    delay (200);
    digitalWrite( ledE, LOW);
}
}

void LA() { 
  tone (sound, 440);
  if  (sound, 440) {
    digitalWrite( ledF, HIGH);
    delay (200);
    digitalWrite( ledF, LOW);
}
}
void SI() { 
  tone (sound, 494);
  if  (sound, 494) {
    digitalWrite( ledG, HIGH);
    delay (200);
    digitalWrite( ledG, LOW);
}
}
void DOO() { 
  tone (sound, 523);
  if  (sound, 523) {
    digitalWrite( ledH, HIGH);
    delay (200);
    digitalWrite( ledH, LOW);
}
}
void DIAM () {
  noTone(sound);
  }

$abcdeabcde151015202530fghijfghij