MidiWrapper currentDriver = appConfig.getMidiWrapper();
MidiWrapper currentDriver = AppConfig.getMidiWrapper();
    private void resetPortComboBoxes() { // only for old MIDI layer	MidiWrapper currentDriver = appConfig.getMidiWrapper();	cbOut.removeAllItems ();	cbIn.removeAllItems ();	cbMC.removeAllItems ();	try {	    for (int j=0; j< currentDriver.getNumOutputDevices ();j++)		cbOut.addItem (j+": "+ currentDriver.getOutputDeviceName (j));	    for (int j=0; j< currentDriver.getNumInputDevices ();j++)		cbIn.addItem (j+": "+currentDriver.getInputDeviceName (j));	    for (int j=0; j< currentDriver.getNumInputDevices ();j++)		cbMC.addItem (j+": "+currentDriver.getInputDeviceName (j));	} catch (Exception e) {	    ErrorMsg.reportStatus(e);	}	setComboBox(cbOut, PatchEdit.appConfig.getInitPortOut());	setComboBox(cbIn,  PatchEdit.appConfig.getInitPortIn());	setComboBox(cbMC,  PatchEdit.appConfig.getMasterController());	setContainerEnabled(channelPanel, cbxEnMidi.isSelected() && currentDriver.isReady());	cbMC.setEnabled(cbxEnMC.isEnabled() && cbxEnMC.isSelected());	//cbxEnMC.setSelected(PatchEdit.appConfig.getMasterInEnable());	repackContainer();    }