Ejemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public void onOKButtonPress(MouseEvent e) {
   if (voice > 176) {
     model.enqueueSound(BankOfSounds.BAD_SOUND);
     model.setLCDDisplay("Cannot use " + MIDIVoices.getVoice(voice).getName());
   } else {
     model.setVoice(model.getCurrentLayer(), MIDIVoices.getVoice(voice));
     model.enqueueSound(BankOfSounds.GOOD_SOUND);
     changeMode(ModeMaster.PERFORMANCE_MODE);
     model.setLCDDisplay("Instrument changed to " + MIDIVoices.getVoice(voice).getName());
     reset();
   }
 }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 @Override
 public void onMatrixButtonPress(MouseEvent e, int x, int y) {
   voice = y * 16 + x + 1;
   model.setLCDDisplay(MIDIVoices.getVoice(voice).getName());
 }