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