Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public void setMidiDevice(MidiDevice dev) {
   ftw.setMidiDevice(dev);
   setUpKeys();
 }