use of de.mossgrabers.framework.daw.IGroove in project DrivenByMoss by git-moss.
the class LaunchpadShuffleView method fillBottom.
/**
* {@index}
*/
@Override
protected void fillBottom() {
super.fillBottom();
final IGroove groove = this.model.getGroove();
final IParameter enabledParameter = groove.getParameter(GrooveParameterID.ENABLED);
if (enabledParameter == null || !enabledParameter.doesExist())
return;
this.padGrid.lightEx(0, 7, enabledParameter.getValue() == 0 ? LaunchpadColorManager.LAUNCHPAD_COLOR_GREY_HI : LaunchpadColorManager.LAUNCHPAD_COLOR_GREEN_HI);
final IParameter rateParameter = groove.getParameter(GrooveParameterID.SHUFFLE_RATE);
if (rateParameter == null || !rateParameter.doesExist())
return;
final boolean isEight = rateParameter.getValue() == 0;
this.padGrid.lightEx(2, 7, isEight ? LaunchpadColorManager.LAUNCHPAD_COLOR_BLUE_HI : LaunchpadColorManager.LAUNCHPAD_COLOR_GREY_HI);
this.padGrid.lightEx(3, 7, !isEight ? LaunchpadColorManager.LAUNCHPAD_COLOR_BLUE_HI : LaunchpadColorManager.LAUNCHPAD_COLOR_GREY_HI);
}
use of de.mossgrabers.framework.daw.IGroove in project DrivenByMoss by git-moss.
the class GrooveMode method setActive.
private void setActive(final boolean enable) {
final IGroove groove = this.model.getGroove();
groove.enableObservers(enable);
groove.setIndication(enable);
}
Aggregations