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