rcvr = MidiUtil.getReceiver(port);
try { rcvr = MidiUtil.getReceiver(port); } catch (MidiUnavailableException e) { ErrorMsg.reportStatus(e); }
    protected void setPort (int port) {    	if (PatchEdit.newMidiAPI) {	    if (!initPort || getPort() != port) {		if (rcvr != null)		    rcvr.close();		rcvr = MidiUtil.getReceiver(port);	    }	}	prefs.putInt("port", port);	initPort = true;    }