Search in sources :

Example 1 with LaunchkeyMk3ParameterMode

use of de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3ParameterMode in project DrivenByMoss by git-moss.

the class LaunchkeyMk3ControllerSetup method createModes.

/**
 * {@inheritDoc}
 */
@Override
protected void createModes() {
    final LaunchkeyMk3ControlSurface surface = this.getSurface();
    final ModeManager modeManager = surface.getModeManager();
    modeManager.register(Modes.VOLUME, new LaunchkeyMk3VolumeMode(surface, this.model, AbstractMode.DEFAULT_KNOB_IDS));
    modeManager.register(Modes.PAN, new LaunchkeyMk3PanoramaMode(surface, this.model, AbstractMode.DEFAULT_KNOB_IDS));
    modeManager.register(Modes.SEND1, new LaunchkeyMk3SendMode(0, surface, this.model, AbstractMode.DEFAULT_KNOB_IDS));
    modeManager.register(Modes.SEND2, new LaunchkeyMk3SendMode(1, surface, this.model, AbstractMode.DEFAULT_KNOB_IDS));
    modeManager.register(Modes.DEVICE_PARAMS, new LaunchkeyMk3ParameterMode(surface, this.model, AbstractMode.DEFAULT_KNOB_IDS));
    // Layer send X IDs are used for custom modes
    modeManager.register(Modes.DEVICE_LAYER_SEND1, new CustomMode(1, surface, this.model));
    modeManager.register(Modes.DEVICE_LAYER_SEND2, new CustomMode(2, surface, this.model));
    modeManager.register(Modes.DEVICE_LAYER_SEND3, new CustomMode(3, surface, this.model));
    modeManager.register(Modes.DEVICE_LAYER_SEND4, new CustomMode(4, surface, this.model));
    final ModeManager faderModeManager = surface.getFaderModeManager();
    faderModeManager.register(Modes.DEVICE_PARAMS, new LaunchkeyMk3ParameterMode(surface, this.model, DEFAULT_FADER_IDS));
    faderModeManager.register(Modes.VOLUME, new LaunchkeyMk3VolumeMode(surface, this.model, DEFAULT_FADER_IDS));
    faderModeManager.register(Modes.SEND1, new LaunchkeyMk3SendMode(0, surface, this.model, DEFAULT_FADER_IDS));
    faderModeManager.register(Modes.SEND2, new LaunchkeyMk3SendMode(1, surface, this.model, DEFAULT_FADER_IDS));
    faderModeManager.register(Modes.DEVICE_LAYER_SEND1, new CustomMode(1, surface, this.model));
    faderModeManager.register(Modes.DEVICE_LAYER_SEND2, new CustomMode(2, surface, this.model));
    faderModeManager.register(Modes.DEVICE_LAYER_SEND3, new CustomMode(3, surface, this.model));
    faderModeManager.register(Modes.DEVICE_LAYER_SEND4, new CustomMode(4, surface, this.model));
}
Also used : CustomMode(de.mossgrabers.controller.novation.launchkey.maxi.mode.CustomMode) LaunchkeyMk3ControlSurface(de.mossgrabers.controller.novation.launchkey.maxi.controller.LaunchkeyMk3ControlSurface) LaunchkeyMk3ParameterMode(de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3ParameterMode) LaunchkeyMk3PanoramaMode(de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3PanoramaMode) LaunchkeyMk3SendMode(de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3SendMode) LaunchkeyMk3VolumeMode(de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3VolumeMode) ModeManager(de.mossgrabers.framework.featuregroup.ModeManager)

Aggregations

LaunchkeyMk3ControlSurface (de.mossgrabers.controller.novation.launchkey.maxi.controller.LaunchkeyMk3ControlSurface)1 CustomMode (de.mossgrabers.controller.novation.launchkey.maxi.mode.CustomMode)1 LaunchkeyMk3PanoramaMode (de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3PanoramaMode)1 LaunchkeyMk3ParameterMode (de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3ParameterMode)1 LaunchkeyMk3SendMode (de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3SendMode)1 LaunchkeyMk3VolumeMode (de.mossgrabers.controller.novation.launchkey.maxi.mode.LaunchkeyMk3VolumeMode)1 ModeManager (de.mossgrabers.framework.featuregroup.ModeManager)1