melody&lights simultansouly

Hi
i am making a project and i am trying to set lights simultaneously with for loop melody
ן can't do it and every time i add the lights blink command its ruin the melody
how i can add blinking lights to the melody and not ruin in
this is the part that i want lights-

for (i = 150; i < 1800; i += 1) {
    tone(6, i, time);
    delay(wait);
    bp = digitalRead (7);
     if (bp==0){
     break ;
     }
  }
for (i = 1800; i > 150; i -= 1) {
    tone(6, i, time);   
    delay(wait); 
     bp = digitalRead (7);
     if (bp==0){
     break ;
     }
}

You'll want to look at the Digital --> BlinkWithoutDelay example to see how to do two things at once without one thing blocking the other.

ieee488:
You'll want to look at the Digital --> BlinkWithoutDelay example to see how to do two things at once without one thing blocking the other.

I still didn't get it...

can you give a example how you tried it with lights blink command?