         var isParsingSysex = false
         var runningStatus: MIDIByte?
         var variableBits = [MIDIByte]()
-        var i = 0
         for byte in data {
-            i += 1
+            print("byte: \(byte)")
             if currentTimeByte == nil {
                 if byte & UInt8(0x80) == 0x80 { //Test if bit #7 of the byte is set
                     isParsingVariableTime = true

                        } else if let status = AKMIDIStatusType.from(byte: type) {
                            currentLengthByte = MIDIByte(status.length)
                        } else {
                            AKLog(("bad midi data - could not determine length of event"))
                            return events
                        }

            if let time = currentTimeByte, let type = currentTypeByte, let length = currentLengthByte,
                UInt8(currentEventData.count) == currentLengthByte {
                var chunkEvent = AKMIDIFileChunkEvent(data: currentAllData)
                print("got \(chunkEvent)")
                if chunkEvent.typeByte == nil, let running = runningStatus {
                    chunkEvent.runningStatus = AKMIDIStatus(byte: running)
                }
