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