mw.init(getInitPortIn(), getInitPortOut());
if (!PatchEdit.newMidiAPI()) mw.init(getInitPortIn(), getInitPortOut());
    public void setMidiPlatform(int midiPlatform) {	if (midiPlatform < 0 || PatchEdit.newMidiAPI)	    midiPlatform = 0;	MidiWrapper mw = (MidiWrapper) midiWrappers.elementAt(midiPlatform);	ErrorMsg.reportStatus("Something selected \"" + mw + "\"");	MidiWrapper currentDriver = getMidiWrapper();	if (currentDriver != null) {	    if (currentDriver.toString().equals(mw.toString())) {		ErrorMsg.reportStatus("We're already using that driver");		return;	    }	    currentDriver.close();	}	// initialize selected MIDI wrapper	ErrorMsg.reportStatus("Initializing driver:" + mw.toString());	try {	    mw.init(getInitPortIn(), getInitPortOut());	    this.midiPlatform = midiPlatform;	    PatchEdit.MidiIn = PatchEdit.MidiOut = midiWrapper = mw;	} catch (DriverInitializationException e) {	    core.ErrorMsg.reportError		("Error",		 "There was an error initializing the MIDI Wrapper!", e);	    //e.printStackTrace ();	    setMidiEnable(false);	    setMidiPlatform(0); // DoNothingMidiWrapper	} catch (Exception e) {	    core.ErrorMsg.reportError		("Error",		 "There was an unspecified problem while initializing the driver!", e);	    e.printStackTrace ();	    setMidiEnable(false);	    setMidiPlatform(0); // DoNothingMidiWrapper	}    }