MIDI CC Serial - LED Brightness Issue

PaulS,

My feeble mind is just barely capable of grasping this concept, but I think I got it.

Is this what you had in mind?

BTW it appears to be working properly.

Thanks for your help!

void checkMIDI(){
    while (Serial.available() > 24){
      firstByte = Serial.read();//read first byte
      secondByte = Serial.read();//read next byte
      thirdByte = Serial.read();//read final byte
        }
      }