bank.sysex = Utility.byteArrayReplace( bank.sysex, patchIndex(patchNum), KawaiK5000CombiDriver.PATCH_DATA_SIZE, p.sysex, KawaiK5000CombiDriver.PATCH_DATA_START, KawaiK5000CombiDriver.PATCH_DATA_SIZE);
((Patch)bank).sysex = Utility.byteArrayReplace( ((Patch)bank).sysex, patchIndex(patchNum), KawaiK5000CombiDriver.PATCH_DATA_SIZE, ((Patch)p).sysex, KawaiK5000CombiDriver.PATCH_DATA_START, KawaiK5000CombiDriver.PATCH_DATA_SIZE);
  public void putPatch(Patch bank, Patch p, int patchNum) {//ErrorMsg.reportStatus("KawaiK5000CombiBankDriver->putPatch: " + patchNum);    bank.sysex = Utility.byteArrayReplace(      bank.sysex, patchIndex(patchNum), KawaiK5000CombiDriver.PATCH_DATA_SIZE,      p.sysex, KawaiK5000CombiDriver.PATCH_DATA_START, KawaiK5000CombiDriver.PATCH_DATA_SIZE);  }