Search in sources :

Example 6 with IGroove

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);
}
Also used : IParameter(de.mossgrabers.framework.daw.data.IParameter) IGroove(de.mossgrabers.framework.daw.IGroove)

Example 7 with IGroove

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);
}
Also used : IGroove(de.mossgrabers.framework.daw.IGroove)

Aggregations

IGroove (de.mossgrabers.framework.daw.IGroove)7 IParameter (de.mossgrabers.framework.daw.data.IParameter)5 PushConfiguration (de.mossgrabers.controller.ableton.push.PushConfiguration)1 Configuration (de.mossgrabers.framework.configuration.Configuration)1 ArpeggiatorMode (de.mossgrabers.framework.daw.midi.ArpeggiatorMode)1