/** {@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(); } }
/** {@inheritDoc} */ @Override public void onMatrixButtonPress(MouseEvent e, int x, int y) { voice = y * 16 + x + 1; model.setLCDDisplay(MIDIVoices.getVoice(voice).getName()); }