PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0xC0+(getChannel()-1)),(byte)(0x20+patchNum));
send(0xC0 + (getChannel()-1), 0x20 + patchNum);
    public void setPatchNum(int patchNum)    {        // we only support internal memory now (add 0x20 to patchnum) since we can't write on preset or cartridge        try {                   PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0xC0+(getChannel()-1)),(byte)(0x20+patchNum));        } catch (Exception e) {};        }