Search in sources :

Example 6 with BeatstepControlSurface

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

Example 7 with BeatstepControlSurface

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);
}
Also used : BeatstepControlSurface(de.mossgrabers.controller.arturia.beatstep.controller.BeatstepControlSurface)

Aggregations

BeatstepControlSurface (de.mossgrabers.controller.arturia.beatstep.controller.BeatstepControlSurface)7 ViewManager (de.mossgrabers.framework.featuregroup.ViewManager)4 PlayView (de.mossgrabers.controller.arturia.beatstep.view.PlayView)2 KnobRowViewCommand (de.mossgrabers.controller.arturia.beatstep.command.continuous.KnobRowViewCommand)1 BeatstepPadGrid (de.mossgrabers.controller.arturia.beatstep.controller.BeatstepPadGrid)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 LightInfo (de.mossgrabers.framework.controller.grid.LightInfo)1 ICursorDevice (de.mossgrabers.framework.daw.data.ICursorDevice)1 IMasterTrack (de.mossgrabers.framework.daw.data.IMasterTrack)1 ITrack (de.mossgrabers.framework.daw.data.ITrack)1 IParameterBank (de.mossgrabers.framework.daw.data.bank.IParameterBank)1 ISendBank (de.mossgrabers.framework.daw.data.bank.ISendBank)1 ITrackBank (de.mossgrabers.framework.daw.data.bank.ITrackBank)1 IMidiAccess (de.mossgrabers.framework.daw.midi.IMidiAccess)1