Change of status after a few seconds

Hi everyone,
I created this design of LEDs that work to the rhythm of music.
Everything works perfectly, but I would like to insert a function, which after a few seconds does not receive any input, all the LEDs come back on. when the sensor receives the input again it will resume the function of going to the rhythm of music.
Can you help me find a way to do it?

I insert a part of code with only one led in operation

int soundSensor=2;
int LED1=7;
boolean LEDStatus=false;

void setup() {
 pinMode(soundSensor,INPUT);
 pinMode(LED1,OUTPUT);

}

void loop() {


// ----------------1

int SensorData=digitalRead(soundSensor); 
  if(SensorData==1){

    if(LEDStatus==false){
        LEDStatus=true;
        digitalWrite(LED1,HIGH);
    }
    else{
        LEDStatus=false;
        digitalWrite(LED1,LOW);
    }
  }
}

Every time you receive input reset a counter to zero.

When input is ‘not’ received increment your counter every ex: 10ms.

When your counter reaches a predefined value (2 seconds) “all the LEDs come back on”.

BTW, avoid using delay().
delay() stops regular code execution for the delay interval.
You can replace delay() with a technique called Blink Without Delay, BWD.
When using BWD, your sketch can run other code during the delay time.
Read Robin2’s discussion, Demonstration code for several things at the same time:
https://forum.arduino.cc/index.php?topic=223286.0

You can do it reading millis().