patch.sysex[ofs-2] = (byte)(newValue >>> 16); patch.sysex[ofs-1] = (byte)((newValue >>> 8) & 0xFF); patch.sysex[ofs]   = (byte)(newValue & 0xFF);
byte byte1 = (byte)(newValue >>> 16); PatchBytes.setSysexByte(patch, 9, ofs-2, byte1);  byte byte2 = (byte)((newValue >>> 8) & 0xFF); PatchBytes.setSysexByte(patch, 9, ofs-1, byte2);  byte byte3 = (byte)(newValue & 0xFF); PatchBytes.setSysexByte(patch, 9, ofs, byte3);
    public void set(int i) {        int coarseValue = getCoarseValue();        //  System.out.println("Control Value = " + (i * maxSysex / maxCC));        int newValue = coarseValue + (i * maxSysex / maxCC);        //  System.out.println("newValue = " + Integer.toHexString(newValue));        patch.sysex[ofs-2] = (byte)(newValue >>> 16);        patch.sysex[ofs-1] = (byte)((newValue >>> 8) & 0xFF);        patch.sysex[ofs]   = (byte)(newValue & 0xFF);        //  System.out.println("Bytes = " + Integer.toHexString(patch.sysex[ofs-2]) + " " + Integer.toHexString(patch.sysex[ofs-1]) + " " + Integer.toHexString(patch.sysex[ofs]));        //  patch.sysex[ofs]=(byte)(i * maxSysex / maxCC);        //  System.out.println("Sysex offset = " + (ofs - 9) + "  Setting Value = " + TestNibbilizer.dump(patch.sysex[ofs]) + " from " + i);    //Test    }