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