Search in sources :

Example 1 with SendMode

use of de.mossgrabers.controller.ni.kontrol.mkii.mode.SendMode in project DrivenByMoss by git-moss.

the class KontrolProtocolControllerSetup method createModes.

/**
 * {@inheritDoc}
 */
@Override
protected void createModes() {
    final KontrolProtocolControlSurface surface = this.getSurface();
    final ModeManager modeManager = surface.getModeManager();
    final List<ContinuousID> controls = ContinuousID.createSequentialList(ContinuousID.KNOB1, 8);
    controls.addAll(ContinuousID.createSequentialList(ContinuousID.FADER1, 8));
    modeManager.register(Modes.VOLUME, new MixerMode(surface, this.model, controls));
    modeManager.register(Modes.SEND, new SendMode(surface, this.model, controls));
    modeManager.register(Modes.DEVICE_PARAMS, new ParamsMode(surface, this.model, controls));
}
Also used : ContinuousID(de.mossgrabers.framework.controller.ContinuousID) ParamsMode(de.mossgrabers.controller.ni.kontrol.mkii.mode.ParamsMode) SendMode(de.mossgrabers.controller.ni.kontrol.mkii.mode.SendMode) MixerMode(de.mossgrabers.controller.ni.kontrol.mkii.mode.MixerMode) KontrolProtocolControlSurface(de.mossgrabers.controller.ni.kontrol.mkii.controller.KontrolProtocolControlSurface) ModeManager(de.mossgrabers.framework.featuregroup.ModeManager)

Aggregations

KontrolProtocolControlSurface (de.mossgrabers.controller.ni.kontrol.mkii.controller.KontrolProtocolControlSurface)1 MixerMode (de.mossgrabers.controller.ni.kontrol.mkii.mode.MixerMode)1 ParamsMode (de.mossgrabers.controller.ni.kontrol.mkii.mode.ParamsMode)1 SendMode (de.mossgrabers.controller.ni.kontrol.mkii.mode.SendMode)1 ContinuousID (de.mossgrabers.framework.controller.ContinuousID)1 ModeManager (de.mossgrabers.framework.featuregroup.ModeManager)1