Search in sources :

Example 1 with DeviceParamsMode

use of de.mossgrabers.mcu.mode.device.DeviceParamsMode in project DrivenByMoss by git-moss.

the class MCUControllerSetup method createModes.

/**
 * {@inheritDoc}
 */
@Override
protected void createModes() {
    for (int index = 0; index < this.numMCUDevices; index++) {
        final MCUControlSurface surface = this.getSurface(index);
        final ModeManager modeManager = surface.getModeManager();
        modeManager.registerMode(Modes.MODE_TRACK, new TrackMode(surface, this.model));
        modeManager.registerMode(Modes.MODE_VOLUME, new VolumeMode(surface, this.model));
        modeManager.registerMode(Modes.MODE_PAN, new PanMode(surface, this.model));
        final SendMode modeSend = new SendMode(surface, this.model);
        for (int i = 0; i < 8; i++) modeManager.registerMode(Integer.valueOf(Modes.MODE_SEND1.intValue() + i), modeSend);
        modeManager.registerMode(Modes.MODE_DEVICE_PARAMS, new DeviceParamsMode(surface, this.model));
        modeManager.registerMode(Modes.MODE_BROWSER, new DeviceBrowserMode(surface, this.model));
        modeManager.registerMode(Modes.MODE_MASTER, new MasterMode(surface, this.model, false));
    }
}
Also used : TrackMode(de.mossgrabers.mcu.mode.track.TrackMode) MasterMode(de.mossgrabers.mcu.mode.track.MasterMode) VolumeMode(de.mossgrabers.mcu.mode.track.VolumeMode) SendMode(de.mossgrabers.mcu.mode.track.SendMode) PanMode(de.mossgrabers.mcu.mode.track.PanMode) DeviceParamsMode(de.mossgrabers.mcu.mode.device.DeviceParamsMode) MCUControlSurface(de.mossgrabers.mcu.controller.MCUControlSurface) DeviceBrowserMode(de.mossgrabers.mcu.mode.device.DeviceBrowserMode) ModeManager(de.mossgrabers.framework.mode.ModeManager)

Aggregations

ModeManager (de.mossgrabers.framework.mode.ModeManager)1 MCUControlSurface (de.mossgrabers.mcu.controller.MCUControlSurface)1 DeviceBrowserMode (de.mossgrabers.mcu.mode.device.DeviceBrowserMode)1 DeviceParamsMode (de.mossgrabers.mcu.mode.device.DeviceParamsMode)1 MasterMode (de.mossgrabers.mcu.mode.track.MasterMode)1 PanMode (de.mossgrabers.mcu.mode.track.PanMode)1 SendMode (de.mossgrabers.mcu.mode.track.SendMode)1 TrackMode (de.mossgrabers.mcu.mode.track.TrackMode)1 VolumeMode (de.mossgrabers.mcu.mode.track.VolumeMode)1