p.sysex[79]  = (byte) performanceOffset; p.sysex[80]  = (byte) 0x01; p.sysex[112] = (byte) performanceOffset; p.sysex[113] = (byte) 0x02; p.sysex[145] = (byte) performanceOffset; p.sysex[146] = (byte) 0x03; p.sysex[178] = (byte) performanceOffset; p.sysex[179] = (byte) 0x04; p.sysex[211] = (byte) performanceOffset; p.sysex[212] = (byte) 0x05;
p.sysex[QuasarConstants.ARRAY_PART_1_OFFSET + QuasarConstants.ARRAY_PERFORMANCE_OFFSET] = (byte) performanceOffset; p.sysex[QuasarConstants.ARRAY_PART_1_OFFSET + QuasarConstants.ARRAY_PERF_PART_OFFSET]   = (byte) 0x01;  p.sysex[QuasarConstants.ARRAY_PART_2_OFFSET + QuasarConstants.ARRAY_PERFORMANCE_OFFSET] = (byte) performanceOffset; p.sysex[QuasarConstants.ARRAY_PART_2_OFFSET + QuasarConstants.ARRAY_PERF_PART_OFFSET]   = (byte) 0x02;  p.sysex[QuasarConstants.ARRAY_PART_3_OFFSET + QuasarConstants.ARRAY_PERFORMANCE_OFFSET] = (byte) performanceOffset; p.sysex[QuasarConstants.ARRAY_PART_3_OFFSET + QuasarConstants.ARRAY_PERF_PART_OFFSET]   = (byte) 0x03;  p.sysex[QuasarConstants.ARRAY_PART_4_OFFSET + QuasarConstants.ARRAY_PERFORMANCE_OFFSET] = (byte) performanceOffset; p.sysex[QuasarConstants.ARRAY_PART_4_OFFSET + QuasarConstants.ARRAY_PERF_PART_OFFSET]   = (byte) 0x04;  p.sysex[QuasarConstants.ARRAY_NAME_OFFSET   + QuasarConstants.ARRAY_PERFORMANCE_OFFSET] = (byte) performanceOffset; p.sysex[QuasarConstants.ARRAY_NAME_OFFSET   + QuasarConstants.ARRAY_PERF_PART_OFFSET]   = (byte) 0x05;
    public void storePatch(Patch p, int bankNum, int patchNum) {    	int performanceOffset = patchNum + QuasarConstants.QUASAR_SYSEX_PERFORMANCE_OFFSET;        // Set the performance number        p.sysex[5]   = (byte) performanceOffset;        p.sysex[79]  = (byte) performanceOffset;        p.sysex[80]  = (byte) 0x01; // Part 1        p.sysex[112] = (byte) performanceOffset;        p.sysex[113] = (byte) 0x02; // Part 2        p.sysex[145] = (byte) performanceOffset;        p.sysex[146] = (byte) 0x03; // Part 3        p.sysex[178] = (byte) performanceOffset;        p.sysex[179] = (byte) 0x04; // Part 4        p.sysex[211] = (byte) performanceOffset;        p.sysex[212] = (byte) 0x05; // The temporary name        sendPatchWorker(p);		try {			Thread.sleep(100);		} catch (Exception e) {		}		setPatchNum(patchNum);    }