public void deletePatch (Patch bank, int patchNum) {
public void deletePatch (IPatch b, int patchNum) { Patch bank = (Patch)b;
  public void deletePatch (Patch bank, int patchNum) {    if (!patchExists(bank, patchNum)) {      JOptionPane.showMessageDialog(null, "Patch does not exist, so can not be deleted.", "Error", JOptionPane.ERROR_MESSAGE);      return;    }    // Update index    generateIndex(bank);    // Delete patch from sysex    bank.sysex = Utility.byteArrayDelete(bank.sysex, patchIndex[patchNum], patchSize(bank, patchNum));    // Update index and checksum    indexedPatch = null;    setPatchExists(bank, patchNum, false);    System.out.println("NumPatches = " + numPatchesinBank(bank));    generateIndex(bank);    calculateChecksum(bank);  }