Search in sources :

Example 1 with TrackSelectCommand

use of de.mossgrabers.apcmini.command.trigger.TrackSelectCommand in project DrivenByMoss by git-moss.

the class APCminiControllerSetup method registerTriggerCommands.

/**
 * {@inheritDoc}
 */
@Override
protected void registerTriggerCommands() {
    final APCminiControlSurface surface = this.getSurface();
    this.addNoteCommand(Commands.COMMAND_SHIFT, APCminiControlSurface.APC_BUTTON_SHIFT, new ShiftCommand(this.model, surface));
    for (int i = 0; i < 8; i++) {
        this.addNoteCommand(Integer.valueOf(Commands.COMMAND_ROW_SELECT_1.intValue() + i), APCminiControlSurface.APC_BUTTON_TRACK_BUTTON1 + i, new TrackSelectCommand(i, this.model, surface));
        this.addNoteCommand(Integer.valueOf(Commands.COMMAND_SCENE1.intValue() + i), APCminiControlSurface.APC_BUTTON_SCENE_BUTTON1 + i, new SceneCommand<>(7 - i, this.model, surface));
    }
}
Also used : APCminiControlSurface(de.mossgrabers.apcmini.controller.APCminiControlSurface) ShiftCommand(de.mossgrabers.apcmini.command.trigger.ShiftCommand) TrackSelectCommand(de.mossgrabers.apcmini.command.trigger.TrackSelectCommand)

Aggregations

ShiftCommand (de.mossgrabers.apcmini.command.trigger.ShiftCommand)1 TrackSelectCommand (de.mossgrabers.apcmini.command.trigger.TrackSelectCommand)1 APCminiControlSurface (de.mossgrabers.apcmini.controller.APCminiControlSurface)1