           }
           startStamp = bufMidi[i];
           break;
-       case MIDI:
-          if (i%4 != 0) 
-					{
-            sprintf(debugBuf, " %02X", bufMidi[i]);
-            Serial.print(debugBuf);
-           	outBuf[(i%4)] = bufMidi[i];
-          }
-          else 
-					{
-            Serial.print(" - ");
-            Midi.SendData(outBuf,2);
-            memset(outBuf, 0, sizeof(outBuf));
-          }
-          if ( i == (bytesRead-2)) 
-					{ 
-						prsState = STRT; 
-					}
-         break;
-				 
-       case RUN:
-	       if (i < 4 && i%4 != 0) 
-				 {
-	       		outBuf[(i%4)] = bufMidi[i];
-	          if (i%4 == 3) {  Midi.SendData(outBuf,3); };
-	       }
-	       else if (i%2 == 0)
-	       {
-	          outBuf[0] = midStat;
-	          outBuf[1] = bufMidi[i];
-	          outBuf[2] = bufMidi[i+1];
-	          Midi.SendData(outBuf,3);
-
-	       }
-	        if ( i == (bytesRead-2)) 
-					{ 
-						prsState = STRT; 
-					}
-				
-       break;
-       
-       case SYSEX: 
-         if (i == (bytesRead-2) && bufMidi[i] == 0xF7) // End reached, move pointer back and overwrite timestamp with SysEx End
-         {
-           outBufMidi[outBufMidPtr-1] = bufMidi[i];
-           Midi.SendData(outBufMidi, 3);
-           prsState = STRT;  
-           
-           
-           Serial.print("Dumping SYSEX BLOB: ");
-           for (int i = 0; i < outBufMidPtr; i++) 
-					 {
-           	 sprintf(debugBuf, " %02X", outBufMidi[i]);
-             Serial.print(debugBuf); }
-             Serial.println(); 
-         	 }
-         else 
-				 {
-           outBufMidi[outBufMidPtr] = bufMidi[i];
-           outBufMidPtr++;
-         }
-        break;
     }
     
 }

  int i = 0; /*data index*/
  char debugBuf[123];
  char buf[20];
  uint8_t bufMidi[128]; 
  byte outBuf[ 3 ]; // single midi message
  // uint8_t outBufMidi[128];
  // Remove header byte

  if ( charHandle == txCharacteristic.getHandle() )
  {
    ble.readCharacteristicValue(txCharacteristic.getHandle(), buf, &bytesRead);
     parseBLEtoMIDI(buf, bytesRead);
     sprintf(debugBuf, " READ: %i", bytesRead);
             Serial.print(debugBuf);
             Serial.println();
  }
}

