Search in sources :

Example 6 with SLControlSurface

use of de.mossgrabers.controller.novation.sl.controller.SLControlSurface in project DrivenByMoss by git-moss.

the class SLControllerSetup method startup.

/**
 * {@inheritDoc}
 */
@Override
public void startup() {
    final SLControlSurface surface = this.getSurface();
    // Initialize 2nd display
    final ModeManager modeManager = surface.getModeManager();
    modeManager.get(Modes.VOLUME).updateDisplay();
    surface.getViewManager().setActive(Views.CONTROL);
    modeManager.setActive(Modes.TRACK);
}
Also used : SLControlSurface(de.mossgrabers.controller.novation.sl.controller.SLControlSurface) ModeManager(de.mossgrabers.framework.featuregroup.ModeManager)

Example 7 with SLControlSurface

use of de.mossgrabers.controller.novation.sl.controller.SLControlSurface in project DrivenByMoss by git-moss.

the class SLControllerSetup method createViews.

/**
 * {@inheritDoc}
 */
@Override
protected void createViews() {
    final SLControlSurface surface = this.getSurface();
    final ViewManager viewManager = surface.getViewManager();
    viewManager.register(Views.PLAY, new PlayView(surface, this.model));
    viewManager.register(Views.CONTROL, new ControlView(surface, this.model));
}
Also used : ViewManager(de.mossgrabers.framework.featuregroup.ViewManager) SLControlSurface(de.mossgrabers.controller.novation.sl.controller.SLControlSurface) PlayView(de.mossgrabers.controller.novation.sl.view.PlayView) ControlView(de.mossgrabers.controller.novation.sl.view.ControlView)

Example 8 with SLControlSurface

use of de.mossgrabers.controller.novation.sl.controller.SLControlSurface in project DrivenByMoss by git-moss.

the class SLControllerSetup method createSurface.

/**
 * {@inheritDoc}
 */
@Override
protected void createSurface() {
    final IMidiAccess midiAccess = this.factory.createMidiAccess();
    final IMidiOutput output = midiAccess.createOutput();
    final IMidiInput input = midiAccess.createInput(this.isMkII ? "Novation SL MkII (Drumpads)" : "Novation SL MkI (Drumpads)", "90????", "80????");
    final IMidiInput keyboardInput = midiAccess.createInput(1, this.isMkII ? "Novation SL MkII (Keyboard)" : "Novation SL MkI (Keyboard)", "80????", "90????", "B0????", "D0????", "E0????");
    final IHost hostProxy = this.model.getHost();
    final SLControlSurface surface = new SLControlSurface(hostProxy, this.colorManager, this.configuration, output, input, this.isMkII);
    this.surfaces.add(surface);
    surface.addPianoKeyboard(25, keyboardInput, true);
}
Also used : IMidiAccess(de.mossgrabers.framework.daw.midi.IMidiAccess) IMidiOutput(de.mossgrabers.framework.daw.midi.IMidiOutput) IMidiInput(de.mossgrabers.framework.daw.midi.IMidiInput) IHost(de.mossgrabers.framework.daw.IHost) SLControlSurface(de.mossgrabers.controller.novation.sl.controller.SLControlSurface)

Aggregations

SLControlSurface (de.mossgrabers.controller.novation.sl.controller.SLControlSurface)8 ModeManager (de.mossgrabers.framework.featuregroup.ModeManager)3 TapTempoInitMkICommand (de.mossgrabers.controller.novation.sl.command.continuous.TapTempoInitMkICommand)1 TapTempoMkICommand (de.mossgrabers.controller.novation.sl.command.continuous.TapTempoMkICommand)1 TouchpadCommand (de.mossgrabers.controller.novation.sl.command.continuous.TouchpadCommand)1 P1ButtonCommand (de.mossgrabers.controller.novation.sl.command.trigger.P1ButtonCommand)1 P2ButtonCommand (de.mossgrabers.controller.novation.sl.command.trigger.P2ButtonCommand)1 TransportButtonCommand (de.mossgrabers.controller.novation.sl.command.trigger.TransportButtonCommand)1 SLDisplay (de.mossgrabers.controller.novation.sl.controller.SLDisplay)1 FixedMode (de.mossgrabers.controller.novation.sl.mode.FixedMode)1 FrameMode (de.mossgrabers.controller.novation.sl.mode.FrameMode)1 FunctionMode (de.mossgrabers.controller.novation.sl.mode.FunctionMode)1 PlayOptionsMode (de.mossgrabers.controller.novation.sl.mode.PlayOptionsMode)1 SLTrackMode (de.mossgrabers.controller.novation.sl.mode.SLTrackMode)1 SLVolumeMode (de.mossgrabers.controller.novation.sl.mode.SLVolumeMode)1 SessionMode (de.mossgrabers.controller.novation.sl.mode.SessionMode)1 TrackTogglesMode (de.mossgrabers.controller.novation.sl.mode.TrackTogglesMode)1 ViewSelectMode (de.mossgrabers.controller.novation.sl.mode.ViewSelectMode)1 DevicePresetsMode (de.mossgrabers.controller.novation.sl.mode.device.DevicePresetsMode)1 SLParameterMode (de.mossgrabers.controller.novation.sl.mode.device.SLParameterMode)1