Search in sources :

Example 1 with DeviceBrowserMode

use of de.mossgrabers.controller.ableton.push.mode.device.DeviceBrowserMode in project DrivenByMoss by git-moss.

the class RasteredKnobCommand method execute.

/**
 * {@inheritDoc}
 */
@Override
public void execute(final int value) {
    final ModeManager modeManager = this.surface.getModeManager();
    if (modeManager.isActive(Modes.BROWSER)) {
        final DeviceBrowserMode mode = (DeviceBrowserMode) modeManager.get(Modes.BROWSER);
        mode.changeSelectedColumnValue(value);
        return;
    }
    if (this.surface.isSelectPressed()) {
        this.transport.changeLoopStart(this.model.getValueChanger().isIncrease(value), this.surface.isKnobSensitivitySlow());
        return;
    }
    super.execute(value);
    this.mvHelper.notifyTempo();
}
Also used : DeviceBrowserMode(de.mossgrabers.controller.ableton.push.mode.device.DeviceBrowserMode) ModeManager(de.mossgrabers.framework.featuregroup.ModeManager)

Aggregations

DeviceBrowserMode (de.mossgrabers.controller.ableton.push.mode.device.DeviceBrowserMode)1 ModeManager (de.mossgrabers.framework.featuregroup.ModeManager)1