Search in sources :

Example 1 with SceneView

use of de.mossgrabers.controller.ni.maschine.mk3.view.SceneView in project DrivenByMoss by git-moss.

the class MaschineControllerSetup method createViews.

/**
 * {@inheritDoc}
 */
@Override
protected void createViews() {
    final MaschineControlSurface surface = this.getSurface();
    final ViewManager viewManager = surface.getViewManager();
    viewManager.register(Views.SCENE_PLAY, new SceneView(surface, this.model));
    viewManager.register(Views.CLIP, new ClipView(surface, this.model));
    final DrumView drumView = new DrumView(surface, this.model);
    viewManager.register(Views.DRUM, drumView);
    viewManager.register(Views.PLAY, new PlayView(surface, this.model, drumView));
    viewManager.register(Views.DEVICE, new ParameterView(surface, this.model));
    if (!this.maschine.hasGroupButtons()) {
        viewManager.register(Views.TRACK_SELECT, new SelectView(surface, this.model));
        viewManager.register(Views.TRACK_SOLO, new SoloView(surface, this.model));
        viewManager.register(Views.TRACK_MUTE, new MuteView(surface, this.model));
    }
    viewManager.register(Views.REPEAT_NOTE, new NoteRepeatView(surface, this.model));
    this.shiftView = new ShiftView(surface, this.model);
    viewManager.register(Views.SHIFT, this.shiftView);
}
Also used : SoloView(de.mossgrabers.controller.ni.maschine.mk3.view.SoloView) MuteView(de.mossgrabers.controller.ni.maschine.mk3.view.MuteView) ShiftView(de.mossgrabers.controller.ni.maschine.mk3.view.ShiftView) SceneView(de.mossgrabers.controller.ni.maschine.mk3.view.SceneView) ViewManager(de.mossgrabers.framework.featuregroup.ViewManager) ClipView(de.mossgrabers.controller.ni.maschine.mk3.view.ClipView) MaschineControlSurface(de.mossgrabers.controller.ni.maschine.mk3.controller.MaschineControlSurface) ParameterView(de.mossgrabers.controller.ni.maschine.mk3.view.ParameterView) DrumView(de.mossgrabers.controller.ni.maschine.mk3.view.DrumView) PlayView(de.mossgrabers.controller.ni.maschine.mk3.view.PlayView) SelectView(de.mossgrabers.controller.ni.maschine.mk3.view.SelectView) NoteRepeatView(de.mossgrabers.controller.ni.maschine.mk3.view.NoteRepeatView)

Aggregations

MaschineControlSurface (de.mossgrabers.controller.ni.maschine.mk3.controller.MaschineControlSurface)1 ClipView (de.mossgrabers.controller.ni.maschine.mk3.view.ClipView)1 DrumView (de.mossgrabers.controller.ni.maschine.mk3.view.DrumView)1 MuteView (de.mossgrabers.controller.ni.maschine.mk3.view.MuteView)1 NoteRepeatView (de.mossgrabers.controller.ni.maschine.mk3.view.NoteRepeatView)1 ParameterView (de.mossgrabers.controller.ni.maschine.mk3.view.ParameterView)1 PlayView (de.mossgrabers.controller.ni.maschine.mk3.view.PlayView)1 SceneView (de.mossgrabers.controller.ni.maschine.mk3.view.SceneView)1 SelectView (de.mossgrabers.controller.ni.maschine.mk3.view.SelectView)1 ShiftView (de.mossgrabers.controller.ni.maschine.mk3.view.ShiftView)1 SoloView (de.mossgrabers.controller.ni.maschine.mk3.view.SoloView)1 ViewManager (de.mossgrabers.framework.featuregroup.ViewManager)1