Search in sources :

Example 1 with TapTempoMkICommand

use of de.mossgrabers.sl.command.continuous.TapTempoMkICommand in project DrivenByMoss by git-moss.

the class SLControllerSetup method registerContinuousCommands.

/**
 * {@inheritDoc}
 */
@Override
protected void registerContinuousCommands() {
    final SLControlSurface surface = this.getSurface();
    for (int i = 0; i < 8; i++) {
        this.addContinuousCommand(Integer.valueOf(Commands.CONT_COMMAND_FADER1.intValue() + i), SLControlSurface.MKII_SLIDER1 + i, new FaderCommand(i, this.model, surface));
        this.addContinuousCommand(Integer.valueOf(Commands.CONT_COMMAND_DEVICE_KNOB1.intValue() + i), SLControlSurface.MKII_KNOB_ROW1_1 + i, new DeviceKnobRowCommand(i, this.model, surface));
        this.addContinuousCommand(Integer.valueOf(Commands.CONT_COMMAND_KNOB1.intValue() + i), SLControlSurface.MKII_KNOB_ROW2_1 + i, new TrackKnobRowCommand(i, this.model, surface));
    }
    this.addContinuousCommand(Commands.CONT_COMMAND_TOUCHPAD_X, SLControlSurface.MKII_TOUCHPAD_X, new TouchpadCommand(true, this.model, surface));
    this.addContinuousCommand(Commands.CONT_COMMAND_TOUCHPAD_Y, SLControlSurface.MKII_TOUCHPAD_Y, new TouchpadCommand(false, this.model, surface));
    this.addContinuousCommand(Commands.CONT_COMMAND_TEMPO_TOUCH, SLControlSurface.MKI_BUTTON_TAP_TEMPO, new TapTempoInitMkICommand(this.model, surface));
    this.addContinuousCommand(Commands.CONT_COMMAND_TEMPO, SLControlSurface.MKI_BUTTON_TAP_TEMPO_VALUE, new TapTempoMkICommand(this.model, surface));
}
Also used : TrackKnobRowCommand(de.mossgrabers.sl.command.continuous.TrackKnobRowCommand) TapTempoMkICommand(de.mossgrabers.sl.command.continuous.TapTempoMkICommand) TapTempoInitMkICommand(de.mossgrabers.sl.command.continuous.TapTempoInitMkICommand) FaderCommand(de.mossgrabers.sl.command.continuous.FaderCommand) SLControlSurface(de.mossgrabers.sl.controller.SLControlSurface) DeviceKnobRowCommand(de.mossgrabers.sl.command.continuous.DeviceKnobRowCommand) TouchpadCommand(de.mossgrabers.sl.command.continuous.TouchpadCommand)

Aggregations

DeviceKnobRowCommand (de.mossgrabers.sl.command.continuous.DeviceKnobRowCommand)1 FaderCommand (de.mossgrabers.sl.command.continuous.FaderCommand)1 TapTempoInitMkICommand (de.mossgrabers.sl.command.continuous.TapTempoInitMkICommand)1 TapTempoMkICommand (de.mossgrabers.sl.command.continuous.TapTempoMkICommand)1 TouchpadCommand (de.mossgrabers.sl.command.continuous.TouchpadCommand)1 TrackKnobRowCommand (de.mossgrabers.sl.command.continuous.TrackKnobRowCommand)1 SLControlSurface (de.mossgrabers.sl.controller.SLControlSurface)1