Search in sources :

Example 1 with FaderCommand

use of de.mossgrabers.launchpad.command.continuous.FaderCommand in project DrivenByMoss by git-moss.

the class LaunchpadControllerSetup method registerContinuousCommands.

/**
 * {@inheritDoc}
 */
@Override
protected void registerContinuousCommands() {
    final LaunchpadControlSurface surface = this.getSurface();
    for (int i = 0; i < 8; i++) this.addContinuousCommand(Integer.valueOf(Commands.CONT_COMMAND_KNOB1.intValue() + i), LaunchpadControlSurface.LAUNCHPAD_FADER_1 + i, new FaderCommand(i, this.model, surface));
    final PlayView playView = (PlayView) surface.getViewManager().getView(Views.VIEW_PLAY);
    playView.registerAftertouchCommand(new AftertouchAbstractPlayViewCommand<>(playView, this.model, surface));
}
Also used : FaderCommand(de.mossgrabers.launchpad.command.continuous.FaderCommand) LaunchpadControlSurface(de.mossgrabers.launchpad.controller.LaunchpadControlSurface) PlayView(de.mossgrabers.launchpad.view.PlayView)

Aggregations

FaderCommand (de.mossgrabers.launchpad.command.continuous.FaderCommand)1 LaunchpadControlSurface (de.mossgrabers.launchpad.controller.LaunchpadControlSurface)1 PlayView (de.mossgrabers.launchpad.view.PlayView)1