use of de.mossgrabers.controller.novation.sl.controller.SLControlSurface in project DrivenByMoss by git-moss.
the class SLControllerSetup method startup.
/**
* {@inheritDoc}
*/
@Override
public void startup() {
final SLControlSurface surface = this.getSurface();
// Initialize 2nd display
final ModeManager modeManager = surface.getModeManager();
modeManager.get(Modes.VOLUME).updateDisplay();
surface.getViewManager().setActive(Views.CONTROL);
modeManager.setActive(Modes.TRACK);
}
use of de.mossgrabers.controller.novation.sl.controller.SLControlSurface in project DrivenByMoss by git-moss.
the class SLControllerSetup method createViews.
/**
* {@inheritDoc}
*/
@Override
protected void createViews() {
final SLControlSurface surface = this.getSurface();
final ViewManager viewManager = surface.getViewManager();
viewManager.register(Views.PLAY, new PlayView(surface, this.model));
viewManager.register(Views.CONTROL, new ControlView(surface, this.model));
}
use of de.mossgrabers.controller.novation.sl.controller.SLControlSurface in project DrivenByMoss by git-moss.
the class SLControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiOutput output = midiAccess.createOutput();
final IMidiInput input = midiAccess.createInput(this.isMkII ? "Novation SL MkII (Drumpads)" : "Novation SL MkI (Drumpads)", "90????", "80????");
final IMidiInput keyboardInput = midiAccess.createInput(1, this.isMkII ? "Novation SL MkII (Keyboard)" : "Novation SL MkI (Keyboard)", "80????", "90????", "B0????", "D0????", "E0????");
final IHost hostProxy = this.model.getHost();
final SLControlSurface surface = new SLControlSurface(hostProxy, this.colorManager, this.configuration, output, input, this.isMkII);
this.surfaces.add(surface);
surface.addPianoKeyboard(25, keyboardInput, true);
}
Aggregations