protected void sendPatchWorker (Patch p) { sendPatchWorker(p, 0);
protected void sendPatchWorker (Patch p, int bankNum) { byte tmp[] = new byte[singleSize]; try { PatchEdit.waitDialog.show(); for (int i = 0; i < NUM_IN_BANK; i++) { System.arraycopy(p.sysex, i * singleSize, tmp, 0, singleSize); tmp[PATCH_NUM_OFFSET] = (byte)i; PatchEdit.MidiOut.writeLongMessage(port, tmp); Thread.sleep(50); } PatchEdit.waitDialog.hide(); } catch (Exception e) { ErrorMsg.reportStatus (e); ErrorMsg.reportError("Error", "Unable to send Patch"); }
  protected void sendPatchWorker (Patch p) {    sendPatchWorker(p, 0);  }