use of de.mossgrabers.controller.arturia.beatstep.controller.BeatstepControlSurface 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));
}
use of de.mossgrabers.controller.arturia.beatstep.controller.BeatstepControlSurface in project DrivenByMoss by git-moss.
the class BeatstepControllerSetup method startup.
/**
* {@inheritDoc}
*/
@Override
public void startup() {
// Enable Shift button to send MIDI Note 07
final BeatstepControlSurface surface = this.getSurface();
surface.getMidiOutput().sendSysex("F0 00 20 6B 7F 42 02 00 01 5E 09 F7");
surface.getViewManager().setActive(Views.TRACK);
}
Aggregations