p.sysex[3] = (byte) 0x20; p.sysex[6] = (byte) (bankNum << 1); p.sysex[7] = (byte) (patchNum + 0x40);
((Patch)p).sysex[3] = (byte) 0x20; ((Patch)p).sysex[6] = (byte) (bankNum << 1); ((Patch)p).sysex[7] = (byte) (patchNum + 0x40);
    public void storePatch(Patch p, int bankNum, int patchNum) {	setBankNum(bankNum);	setPatchNum(patchNum);	try {	    Thread.sleep(100);	} catch (Exception e) {	}	p.sysex[3] = (byte) 0x20;	p.sysex[6] = (byte) (bankNum << 1);	p.sysex[7] = (byte) (patchNum + 0x40);	sendPatchWorker(p);	try {	    Thread.sleep(100);	} catch (Exception e) {	}	setPatchNum(patchNum);    }