         return nil
     }
 
-    var length: Int {
+    public var length: Int {
         if let typeByte = self.typeByte {
             if let metaEvent = AKMIDIMetaEventType(rawValue: typeByte) {
                 if let length = metaEvent.length {

        return Array(data.prefix(timeLength))
    }

    var deltaTime: Int {
        let timeBytes = data.prefix(timeLength)
        var time: UInt16  = 0
        for byte in timeBytes {

        return (data.firstIndex(where: { $0 < 0x80 }) ?? 0) + 1
    }

    public var typeByte: MIDIByte? {
        if let index = typeIndex {
            return data[index]
        }
