Help Led matix isn't lighting up correctly Is it a Hardware or software issue?
This was what i was able to come up with, once a notes is press the blink function turns the LED on and off really fast. i am now have trouble getting the led to turn off once the notes is being pressed am not sure if the code is exiting from the while loop.

include 

MIDI_CREATE_DEFAULT_INSTANCE();

define LedR 3   //

define LedC 4 //pin for each led

byte data1 = 0;

unsigned long previousMillisR[2]; //[x] = number of leds

unsigned long previousMillisC[2]; //[x] = number of leds

int Status [25];

void setup() { 

MIDI.begin(MIDI_CHANNEL_OMNI);

MIDI.setHandleNoteOn(MyHandleNoteOn);

MIDI.setHandleNoteOff(MyHandleNoteOff);

pinMode(LedR, OUTPUT);   

pinMode(LedC, OUTPUT);  

}

void loop() {

MIDI.read();

//BlinkLedR(LedR,2000, 0);   //BlinkLed( which led, interval, one of the 
stored prevMillis

//BlinkLedC(LedC, 10, 0);  //last parameters must be different for each 
led

}

void BlinkLedR (int led, int interval, int array){   

//(long) can be omitted if you dont plan to blink led for very long time I think

if (((long)millis() - previousMillisR[array]) >= interval){ 

previousMillisR[array]= millis(); //stores the millis value in the 


selected array

digitalWrite(led, !digitalRead(led)); //changes led state

}

}

void BlinkLedC (int led, int interval, int array){   

//(long) can be omitted if you dont plan to blink led for very long 
time I think

if (((long)millis() - previousMillisC[array]) >= interval){ 

previousMillisC[array]= millis(); //stores the millis value in the 


selected array

digitalWrite(led, !digitalRead(led)); //changes led state


}

}

void MyHandleNoteOn(byte channel, byte pitch, byte velocity) { 

data1 = MIDI.getData1();

if (data1==48){//C3

Status[0]=1;

while(Status[0]==1) {

BlinkLedR(LedR, 10, 0);   //BlinkLed( which led, interval, one of the 

stored prevMillis

BlinkLedC(LedC, 1, 0);  //last parameters must be different for each led

if (Status==!1){

break;

}

}

}

}

void MyHandleNoteOff(byte channel, byte pitch, byte velocity) { 

data1 = MIDI.getData1();

if (data1==48){//C3

Status[0]=0;

}

}