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));
}
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));
}
Aggregations