                 }
                 
             } else {
-                if let cmd = AKMIDISystemCommand(rawValue: packet.data.0) {
+                if let cmd = packet.command {
                     fillData(command: cmd, byte1: packet.data.1, byte2: packet.data.2)
                 } else {
                     print("AKMIDISystemCommand failure due to bad data - need to investigate")

    var isSysex: Bool {
        return data.0 == AKMIDISystemCommand.sysex.rawValue
    }
}

/// A container for the values that define a MIDI event

    ///
    init(packet: MIDIPacket) {
        if packet.data.0 < 0xF0 {
            if let status = packet.status {
                fillData(status: status,
                         channel: packet.channel,
                         byte1: packet.data.1,
                         byte2: packet.data.2)
            }
