sendPatch (p);
    public void playPatch (Patch p)    {        try        {            sendPatch (p);            Thread.sleep (100);                    PatchEdit.MidiOut.writeShortMessage (port,            (byte)(0x90+(channel-1)),(byte)PatchEdit.noteChooserDialog.note,(byte)PatchEdit.noteChooserDialog.velocity);            Thread.sleep (PatchEdit.noteChooserDialog.delay);            PatchEdit.MidiOut.writeShortMessage (port,            (byte)(0x80+(channel-1)),(byte)PatchEdit.noteChooserDialog.note,(byte)0);        } catch (Exception e)        {ErrorMsg.reportStatus (e);}    }