PatchEdit.MidiOut.writeLongMessage(getPort(),p.sysex);
send(p.sysex);
    public void storePatch(Patch p, int bankNum,int patchNum) {        //        int patchValue = patchNum;        //int bankValue  = 0;               calculateChecksum(p);                        try        {Thread.sleep(100); } catch (Exception e)        {}                p.sysex[2]=(byte)(0x30 + getChannel() - 1);        try {            PatchEdit.MidiOut.writeLongMessage(getPort(),p.sysex);        }catch (Exception e)        {ErrorMsg.reportStatus(e);}    /*        try        {Thread.sleep (100); } catch (Exception e)        {}     */    }