Search in sources :

Example 11 with SLMkIIIDisplay

use of de.mossgrabers.controller.novation.slmkiii.controller.SLMkIIIDisplay in project DrivenByMoss by git-moss.

the class SLMkIIISendMode method updateDisplay.

/**
 * {@inheritDoc}
 */
@Override
public void updateDisplay() {
    final SLMkIIIDisplay d = this.surface.getDisplay();
    d.clear();
    d.setCell(0, 8, "Send " + (this.sendIndex + 1));
    final ITrackBank tb = this.model.getCurrentTrackBank();
    for (int i = 0; i < 8; i++) {
        int color = SLMkIIIColorManager.SLMKIII_BLACK;
        final ITrack t = tb.getItem(i);
        if (t.doesExist()) {
            final ISend send = t.getSendBank().getItem(this.sendIndex);
            if (send.doesExist()) {
                d.setCell(0, i, send.getName(9)).setCell(1, i, send.getDisplayedValue(9));
                color = SLMkIIIColorManager.SLMKIII_YELLOW;
            }
        }
        this.setColumnColors(d, i, t, color);
    }
    final ITrack cursorTrack = this.model.getCursorTrack();
    d.setCell(1, 8, cursorTrack == null ? "" : StringUtils.fixASCII(cursorTrack.getName(9)));
    this.drawRow4();
    this.setButtonInfo(d);
    d.allDone();
}
Also used : ITrack(de.mossgrabers.framework.daw.data.ITrack) ITrackBank(de.mossgrabers.framework.daw.data.bank.ITrackBank) ISend(de.mossgrabers.framework.daw.data.ISend) SLMkIIIDisplay(de.mossgrabers.controller.novation.slmkiii.controller.SLMkIIIDisplay)

Example 12 with SLMkIIIDisplay

use of de.mossgrabers.controller.novation.slmkiii.controller.SLMkIIIDisplay in project DrivenByMoss by git-moss.

the class OptionsMode method updateDisplay.

/**
 * {@inheritDoc}
 */
@Override
public void updateDisplay() {
    final ITransport transport = this.model.getTransport();
    final SLMkIIIDisplay d = this.surface.getDisplay();
    d.clear();
    d.setCell(3, 0, "Undo");
    d.setPropertyColor(0, 2, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyValue(0, 1, 0);
    d.setCell(3, 1, "Redo");
    d.setPropertyColor(1, 2, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyValue(1, 1, 0);
    d.setCell(3, 2, "<<Project");
    d.setPropertyColor(2, 2, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyValue(2, 1, 0);
    d.setCell(3, 3, "Project>>");
    d.setPropertyColor(3, 2, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyValue(3, 1, 0);
    d.setCell(3, 4, "Tap");
    d.setPropertyColor(4, 2, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyValue(4, 1, 0);
    d.setCell(3, 5, transport.isMetronomeOn() ? "On" : "Off");
    d.setPropertyColor(5, 2, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyValue(5, 1, transport.isMetronomeOn() ? 1 : 0);
    d.setCell(3, 6, "Engine");
    d.setPropertyColor(6, 2, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyValue(6, 1, this.model.getApplication().isEngineActive() ? 1 : 0);
    d.setCell(3, 7, "Quantize");
    d.setPropertyColor(7, 2, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyValue(7, 1, 0);
    final IMasterTrack master = this.model.getMasterTrack();
    d.setCell(0, 0, StringUtils.fixASCII("Mstr Vol")).setCell(1, 0, master.getVolumeStr(9));
    d.setPropertyColor(0, 0, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyColor(0, 1, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setCell(0, 1, StringUtils.fixASCII("Mstr Pan")).setCell(1, 1, master.getPanStr(9));
    d.setPropertyColor(1, 0, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyColor(1, 1, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setCell(0, 4, StringUtils.fixASCII("Tempo")).setCell(1, 4, transport.formatTempo(transport.getTempo()));
    d.setPropertyColor(4, 0, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyColor(4, 1, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setCell(0, 5, StringUtils.fixASCII("Metronome")).setCell(1, 5, transport.getMetronomeVolumeStr());
    d.setPropertyColor(5, 0, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setPropertyColor(5, 1, SLMkIIIColorManager.SLMKIII_BROWN);
    d.setCell(0, 8, "Master");
    this.setButtonInfo(d);
    d.allDone();
}
Also used : ITransport(de.mossgrabers.framework.daw.ITransport) SLMkIIIDisplay(de.mossgrabers.controller.novation.slmkiii.controller.SLMkIIIDisplay) IMasterTrack(de.mossgrabers.framework.daw.data.IMasterTrack)

Aggregations

SLMkIIIDisplay (de.mossgrabers.controller.novation.slmkiii.controller.SLMkIIIDisplay)12 ITrack (de.mossgrabers.framework.daw.data.ITrack)6 ITrackBank (de.mossgrabers.framework.daw.data.bank.ITrackBank)5 DrumView (de.mossgrabers.controller.novation.slmkiii.view.DrumView)2 ITransport (de.mossgrabers.framework.daw.ITransport)2 IParameter (de.mossgrabers.framework.daw.data.IParameter)2 ISend (de.mossgrabers.framework.daw.data.ISend)2 ModeManager (de.mossgrabers.framework.featuregroup.ModeManager)2 ButtonAreaCommand (de.mossgrabers.controller.novation.slmkiii.command.trigger.ButtonAreaCommand)1 DeviceModeCommand (de.mossgrabers.controller.novation.slmkiii.command.trigger.DeviceModeCommand)1 SLMkIIIPlayCommand (de.mossgrabers.controller.novation.slmkiii.command.trigger.SLMkIIIPlayCommand)1 SLMkIIIToggleLoopCommand (de.mossgrabers.controller.novation.slmkiii.command.trigger.SLMkIIIToggleLoopCommand)1 TrackModeCommand (de.mossgrabers.controller.novation.slmkiii.command.trigger.TrackModeCommand)1 SLMkIIIControlSurface (de.mossgrabers.controller.novation.slmkiii.controller.SLMkIIIControlSurface)1 BaseMode (de.mossgrabers.controller.novation.slmkiii.mode.BaseMode)1 ModeCursorCommand (de.mossgrabers.framework.command.trigger.mode.ModeCursorCommand)1 WindCommand (de.mossgrabers.framework.command.trigger.transport.WindCommand)1 FeatureGroupButtonColorSupplier (de.mossgrabers.framework.command.trigger.view.FeatureGroupButtonColorSupplier)1 ButtonID (de.mossgrabers.framework.controller.ButtonID)1 ColorEx (de.mossgrabers.framework.controller.color.ColorEx)1