Search in sources :

Example 1 with TrackSendMode

use of de.mossgrabers.framework.mode.track.TrackSendMode in project DrivenByMoss by git-moss.

the class GenericFlexiControllerSetup method createModes.

/**
 * {@inheritDoc}
 */
@Override
protected void createModes() {
    final GenericFlexiControlSurface surface = this.getSurface();
    final ModeManager modeManager = surface.getModeManager();
    modeManager.register(Modes.TRACK, new TrackMode<>(surface, this.model, true));
    modeManager.register(Modes.VOLUME, new TrackVolumeMode<>(surface, this.model, true));
    modeManager.register(Modes.PAN, new TrackPanMode<>(surface, this.model, true));
    for (int i = 0; i < 8; i++) modeManager.register(Modes.get(Modes.SEND1, i), new TrackSendMode<>(i, surface, this.model, true));
    modeManager.register(Modes.DEVICE_PARAMS, new ParameterMode<>(surface, this.model, true));
    modeManager.register(Modes.BROWSER, new BrowserMode<>(surface, this.model));
    modeManager.setDefaultID(Modes.VOLUME);
}
Also used : GenericFlexiControlSurface(de.mossgrabers.controller.generic.controller.GenericFlexiControlSurface) TrackSendMode(de.mossgrabers.framework.mode.track.TrackSendMode) ModeManager(de.mossgrabers.framework.featuregroup.ModeManager)

Aggregations

GenericFlexiControlSurface (de.mossgrabers.controller.generic.controller.GenericFlexiControlSurface)1 ModeManager (de.mossgrabers.framework.featuregroup.ModeManager)1 TrackSendMode (de.mossgrabers.framework.mode.track.TrackSendMode)1