         case 0xff : //system realtime message
             msgSize = 1;
             break;
-            
             //undefine messages
         default :
             break;

    if ( (size = Midi.RecvData(outBuf)) > 0 ) {
      // Send data to parser
      parseMIDItoAppleBle(size, outBuf);

    }
  } while (size > 0);

 uint32_t err_code = NRF_SUCCESS;

}

/*******************************************************************************
 * Convert MIDI BLE to MIDI USB
 * !!!! THIS NEEDS TO BE REWRITTEN FROM SCRATCH !!!!
 * 
 *******************************************************************************/
void parseBLEtoMIDI(uint8_t *dataptr, uint16_t bytesRead)
{
  
  uint8_t outBuffer[128];
  uint8_t outPtr = 0;
  uint8_t singByte; /* single byte from message */

uint8_t lookupMsgSize(uint8_t midiMsg)
{
    uint8_t msgSize = 0;
    if( midiMsg < 0xf0 ) midiMsg &= 0xf0;
    switch(midiMsg) {
       //3 bytes messages
        case 0xf2 : //system common message(SPP)
        case 0x80 : //Note off
        case 0x90 : //Note on
