@Override /** This will set the correct MidiDevice when the project is reloaded */ public void onLoad() { super.onLoad(); ftw.setMidiChannel(midiChannel); if (midiDeviceIndex != null) { try { ftw.setMidiDevice(project.getSequencer().listMidiOutDevices().get(midiDeviceIndex)); } catch (Exception e) { System.out.println("WARNING: Was unable to connect to external midi device"); } } setUpKeys(); }
public void setMidiDevice(MidiDevice dev) { ftw.setMidiDevice(dev); setUpKeys(); }