Search in sources :

Example 1 with PlayView

use of de.mossgrabers.controller.arturia.beatstep.view.PlayView in project DrivenByMoss by git-moss.

the class BeatstepControllerSetup method createViews.

/**
 * {@inheritDoc}
 */
@Override
protected void createViews() {
    final BeatstepControlSurface surface = this.getSurface();
    final ViewManager viewManager = surface.getViewManager();
    viewManager.register(Views.TRACK, new TrackView(surface, this.model));
    viewManager.register(Views.DEVICE, new DeviceView(surface, this.model));
    viewManager.register(Views.PLAY, new PlayView(surface, this.model));
    viewManager.register(Views.DRUM, new DrumView(surface, this.model));
    viewManager.register(Views.SEQUENCER, new SequencerView(surface, this.model));
    viewManager.register(Views.SESSION, new SessionView(surface, this.model));
    viewManager.register(Views.BROWSER, new BrowserView(surface, this.model));
    viewManager.register(Views.SHIFT, new ShiftView(surface, this.model));
}
Also used : SequencerView(de.mossgrabers.controller.arturia.beatstep.view.SequencerView) TrackView(de.mossgrabers.controller.arturia.beatstep.view.TrackView) ShiftView(de.mossgrabers.controller.arturia.beatstep.view.ShiftView) ViewManager(de.mossgrabers.framework.featuregroup.ViewManager) SessionView(de.mossgrabers.controller.arturia.beatstep.view.SessionView) DeviceView(de.mossgrabers.controller.arturia.beatstep.view.DeviceView) BrowserView(de.mossgrabers.controller.arturia.beatstep.view.BrowserView) BeatstepControlSurface(de.mossgrabers.controller.arturia.beatstep.controller.BeatstepControlSurface) DrumView(de.mossgrabers.controller.arturia.beatstep.view.DrumView) PlayView(de.mossgrabers.controller.arturia.beatstep.view.PlayView)

Example 2 with PlayView

use of de.mossgrabers.controller.arturia.beatstep.view.PlayView in project DrivenByMoss by git-moss.

the class BeatstepControllerSetup method registerContinuousCommands.

/**
 * {@inheritDoc}
 */
@Override
protected void registerContinuousCommands() {
    final BeatstepControlSurface surface = this.getSurface();
    final ViewManager viewManager = surface.getViewManager();
    for (int i = 0; i < 8; i++) {
        this.addRelativeKnob(ContinuousID.get(ContinuousID.KNOB1, i), "Knob " + (i + 1), new KnobRowViewCommand(i, this.model, surface), BindType.CC, 2, BeatstepControlSurface.BEATSTEP_KNOB_1 + i, RelativeEncoding.OFFSET_BINARY);
        this.addRelativeKnob(ContinuousID.get(ContinuousID.DEVICE_KNOB1, i), "Knob " + (i + 9), new KnobRowViewCommand(i + 8, this.model, surface), BindType.CC, 2, BeatstepControlSurface.BEATSTEP_KNOB_9 + i, RelativeEncoding.OFFSET_BINARY);
    }
    this.addRelativeKnob(ContinuousID.MASTER_KNOB, "Master", new PlayPositionCommand<>(this.model, surface), BindType.CC, 2, BeatstepControlSurface.BEATSTEP_KNOB_MAIN, RelativeEncoding.OFFSET_BINARY);
    final PlayView playView = (PlayView) viewManager.get(Views.PLAY);
    playView.registerAftertouchCommand(new AftertouchViewCommand<>(playView, this.model, surface));
}
Also used : KnobRowViewCommand(de.mossgrabers.controller.arturia.beatstep.command.continuous.KnobRowViewCommand) ViewManager(de.mossgrabers.framework.featuregroup.ViewManager) BeatstepControlSurface(de.mossgrabers.controller.arturia.beatstep.controller.BeatstepControlSurface) PlayView(de.mossgrabers.controller.arturia.beatstep.view.PlayView)

Aggregations

BeatstepControlSurface (de.mossgrabers.controller.arturia.beatstep.controller.BeatstepControlSurface)2 PlayView (de.mossgrabers.controller.arturia.beatstep.view.PlayView)2 ViewManager (de.mossgrabers.framework.featuregroup.ViewManager)2 KnobRowViewCommand (de.mossgrabers.controller.arturia.beatstep.command.continuous.KnobRowViewCommand)1 BrowserView (de.mossgrabers.controller.arturia.beatstep.view.BrowserView)1 DeviceView (de.mossgrabers.controller.arturia.beatstep.view.DeviceView)1 DrumView (de.mossgrabers.controller.arturia.beatstep.view.DrumView)1 SequencerView (de.mossgrabers.controller.arturia.beatstep.view.SequencerView)1 SessionView (de.mossgrabers.controller.arturia.beatstep.view.SessionView)1 ShiftView (de.mossgrabers.controller.arturia.beatstep.view.ShiftView)1 TrackView (de.mossgrabers.controller.arturia.beatstep.view.TrackView)1