PatchEdit.MidiOut.writeShortMessage (getPort(),(byte)(0xC0+(getChannel()-1)),(byte)patchNum);
send(0xC0+(getChannel()-1), patchNum);
    public void setPatchNum (int patchNum)    {                try        {            PatchEdit.MidiOut.writeShortMessage (getPort(),(byte)(0xC0+(getChannel()-1)),(byte)patchNum);        } catch (Exception e)        {};    }