code: function encodeSysexEvent(event) {
      var cursor, length;
  
      length = encodeVarInt(event.data.length);
      cursor = new BufferCursor(new buffer.Buffer(
          1 + length.length + event.data.length
      ));
  
      cursor.writeUInt8(0xF0 | event.type);
      cursor.copy(length);
      cursor.copy(event.data);
  
      return cursor.buffer;
  }
docs: Encode a system exclusive MIDI event
  
  @private
  @param {module:midijs/lib/file/event~SysexEvent} event Sysex event to encode
  @return {Buffer} Encoded sysex event