Search in sources :

Example 1 with SendMode

use of de.mossgrabers.apcmini.mode.SendMode in project DrivenByMoss by git-moss.

the class APCminiControllerSetup method createModes.

/**
 * {@inheritDoc}
 */
@Override
protected void createModes() {
    final APCminiControlSurface surface = this.getSurface();
    final ModeManager modeManager = surface.getModeManager();
    modeManager.registerMode(Modes.MODE_VOLUME, new VolumeMode(surface, this.model));
    modeManager.registerMode(Modes.MODE_PAN, new PanMode(surface, this.model));
    for (int i = 0; i < 8; i++) modeManager.registerMode(Integer.valueOf(Modes.MODE_SEND1.intValue() + i), new SendMode(i, surface, this.model));
    modeManager.registerMode(Modes.MODE_DEVICE, new DeviceMode(surface, this.model));
    modeManager.setDefaultMode(Modes.MODE_VOLUME);
}
Also used : APCminiControlSurface(de.mossgrabers.apcmini.controller.APCminiControlSurface) DeviceMode(de.mossgrabers.apcmini.mode.DeviceMode) VolumeMode(de.mossgrabers.apcmini.mode.VolumeMode) SendMode(de.mossgrabers.apcmini.mode.SendMode) PanMode(de.mossgrabers.apcmini.mode.PanMode) ModeManager(de.mossgrabers.framework.mode.ModeManager)

Aggregations

APCminiControlSurface (de.mossgrabers.apcmini.controller.APCminiControlSurface)1 DeviceMode (de.mossgrabers.apcmini.mode.DeviceMode)1 PanMode (de.mossgrabers.apcmini.mode.PanMode)1 SendMode (de.mossgrabers.apcmini.mode.SendMode)1 VolumeMode (de.mossgrabers.apcmini.mode.VolumeMode)1 ModeManager (de.mossgrabers.framework.mode.ModeManager)1