System.arraycopy(p.sysex, 0, bank.sysex, patchNum * 2350, 2350); bank.sysex[patchNum * 2350 + 6] = 0; bank.sysex[patchNum * 2350 + 7] = (byte)patchNum;
System.arraycopy(((Patch)p).sysex, 0, ((Patch)bank).sysex, patchNum * 2350, 2350); ((Patch)bank).sysex[patchNum * 2350 + 6] = 0; ((Patch)bank).sysex[patchNum * 2350 + 7] = (byte)patchNum;
  public void putPatch(Patch bank, Patch p, int patchNum)  {    if (!canHoldPatch(p))    {      ErrorMsg.reportError("Error", "This type of patch does not fit in to this type of bank.");      return;    }    System.arraycopy(p.sysex, 0, bank.sysex, patchNum * 2350, 2350);    bank.sysex[patchNum * 2350 + 6] = 0; // user bank    bank.sysex[patchNum * 2350 + 7] = (byte)patchNum; // set program #  }