/** @param _instrument */ public void setInstrument(Instrument _instrument) { instrument = _instrument; for (Voice v : voices) { if (v instanceof Voice) { v.setInstrument(instrument); } } }
public void voiceEvent(Voice arg0) { layer = arg0.getVoice(); }