Search in sources :

Example 1 with MCUDisplay

use of de.mossgrabers.controller.mackie.mcu.controller.MCUDisplay in project DrivenByMoss by git-moss.

the class MaschineControllerSetup method createSurface.

/**
 * {@inheritDoc}
 */
@Override
protected void createSurface() {
    final IMidiAccess midiAccess = this.factory.createMidiAccess();
    final IMidiOutput output = midiAccess.createOutput();
    final IMidiInput input = midiAccess.createInput(this.maschine.getName(), "80????", "90????", "A0????", "D0????");
    final MaschineControlSurface surface = new MaschineControlSurface(this.host, this.colorManager, this.maschine, this.configuration, output, input);
    this.surfaces.add(surface);
    if (this.maschine.hasMCUDisplay()) {
        final MCUDisplay display = new MCUDisplay(this.host, output, true, false, false);
        display.setCenterNotification(false);
        surface.addTextDisplay(display);
    }
}
Also used : IMidiAccess(de.mossgrabers.framework.daw.midi.IMidiAccess) IMidiOutput(de.mossgrabers.framework.daw.midi.IMidiOutput) MCUDisplay(de.mossgrabers.controller.mackie.mcu.controller.MCUDisplay) IMidiInput(de.mossgrabers.framework.daw.midi.IMidiInput) MaschineControlSurface(de.mossgrabers.controller.ni.maschine.mk3.controller.MaschineControlSurface)

Aggregations

MCUDisplay (de.mossgrabers.controller.mackie.mcu.controller.MCUDisplay)1 MaschineControlSurface (de.mossgrabers.controller.ni.maschine.mk3.controller.MaschineControlSurface)1 IMidiAccess (de.mossgrabers.framework.daw.midi.IMidiAccess)1 IMidiInput (de.mossgrabers.framework.daw.midi.IMidiInput)1 IMidiOutput (de.mossgrabers.framework.daw.midi.IMidiOutput)1