コード例 #1
0
  @Override
  protected void installImp(ProjectContainer project) {

    // super will sort out setting my real device
    super.installImp(project);
    this.project = project;
    System.out.println("Installing DRUMMAPER ");

    if (target != null) {

      // target might not be installed at this point.
      target.install(project);
      ((DrumMapper) ((SynthWrapper) midiDevice).getRealDevice())
          .setDefaultMidiDevice(target.getMidiDevice());
    }

    ((DrumMapper) ((SynthWrapper) midiDevice).getRealDevice()).setNoteMap(noteMap);
  }
コード例 #2
0
 public DrumMapperDescriptor(SynthWrapper midiDevice, ProjectContainer proj) {
   super(midiDevice);
   assert (midiDevice.getRealDevice() instanceof DrumMapper);
   project = proj;
 }