PatchBytes.setSysexByte(p, Constants.BDMP_HDR_SIZE, i + patchNameStart, namebytes[i]);
PatchBytes.setSysexByte(p, Constants.BDMP_HDR_SIZE, i + nameOfs, namebytes[i]);
    protected void setPatchName(Patch p,int patchNum, String name)    {        patchNameStart=getUnNibblizedPatchStart(patchNum);        patchNameStart+=Constants.PATCH_NAME_START; //offset of name in patch data        if (name.length()<patchNameSize) name = name + "                ";        byte [] namebytes = new byte [patchNameSize];        try {            namebytes = name.getBytes("US-ASCII");            for (int i = 0; i < patchNameSize; i++) {                PatchBytes.setSysexByte(p, Constants.BDMP_HDR_SIZE, i + patchNameStart, namebytes[i]);            }        } catch (UnsupportedEncodingException ex) {return;}    }