Beispiel #1
0
 @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();
 }
Beispiel #2
0
 public void setMidiDevice(MidiDevice dev) {
   ftw.setMidiDevice(dev);
   setUpKeys();
 }