byte[] mySysex = new byte[p.sysex.length]; System.arraycopy(p.sysex, 0, mySysex, 0, p.sysex.length); PatchEdit.Clipboard = new Patch(mySysex, (p.date.toString()), (p.author.toString()), (p.comment.toString()));
PatchEdit.Clipboard = (Patch) p.clone();
    public void CopySelectedPatch() {	try {	    byte[] mySysex = new byte[p.sysex.length];	    System.arraycopy(p.sysex, 0, mySysex, 0, p.sysex.length);	    PatchEdit.Clipboard = new Patch(mySysex,					    (p.date.toString()),					    (p.author.toString()),					    (p.comment.toString()));	} catch (Exception e) {	}    }