if ((currentInPort!=PatchEdit.prefsDialog.faderPort) && (PatchEdit.prefsDialog.faderEnable)) {faderMidiPort=new MidiPort(PatchEdit.prefsDialog.faderPort,outport);
if ((currentInPort!=PatchEdit.appConfig.getFaderPort()) && (PatchEdit.appConfig.getFaderEnable())) {faderMidiPort=new MidiPort(PatchEdit.appConfig.getFaderPort(),outport);
  public  JavaMidiWrapper (int inport, int outport) throws Exception  {   javaMidiPort=new MidiPort(inport,outport);   currentInPort=inport; currentOutPort=outport;      if ((currentInPort!=PatchEdit.prefsDialog.faderPort) && (PatchEdit.prefsDialog.faderEnable))   {faderMidiPort=new MidiPort(PatchEdit.prefsDialog.faderPort,outport);   try{faderMidiPort.open();} catch (Exception e) {JOptionPane.showMessageDialog(null, "Unable to Initialize MIDI IN/OUT! \nMidi Transfer will be unavailable this session.\n The MidiOut Driver you have chosen for initialization is not a multi client driver.\n Either chose a multi-client driver, or disable faders under Config->Preferences->Faders.\n Then Restart. .","Error", JOptionPane.ERROR_MESSAGE);};  };   try{javaMidiPort.open();} catch (Exception e) {JOptionPane.showMessageDialog(null, "Unable to Initialize MIDI IN/OUT! \nMidi Transfer will be unavailable this session.\n Try changing initialization ports under Config->Preferences->MIDI and restarting.","Error",JOptionPane.ERROR_MESSAGE);};  }