Search in sources :

Example 36 with ITextDisplay

use of de.mossgrabers.framework.controller.display.ITextDisplay in project DrivenByMoss by git-moss.

the class ViewSelectMode method updateDisplay.

/**
 * {@inheritDoc}
 */
@Override
public void updateDisplay() {
    final ITextDisplay d = this.surface.getTextDisplay().clearRow(0).clearRow(1);
    final ViewManager viewManager = this.surface.getViewManager();
    d.setBlock(0, 0, "Select mode:");
    d.setCell(1, 0, (viewManager.isActive(Views.CONTROL) ? SLDisplay.RIGHT_ARROW : " ") + "Control");
    d.setCell(1, 1, " " + (viewManager.isActive(Views.PLAY) ? SLDisplay.RIGHT_ARROW : " ") + "Play");
    d.done(0).done(1);
}
Also used : ViewManager(de.mossgrabers.framework.featuregroup.ViewManager) ITextDisplay(de.mossgrabers.framework.controller.display.ITextDisplay)

Example 37 with ITextDisplay

use of de.mossgrabers.framework.controller.display.ITextDisplay in project DrivenByMoss by git-moss.

the class PlayOptionsMode method updateDisplay.

/**
 * {@inheritDoc}
 */
@Override
public void updateDisplay() {
    final ITextDisplay d = this.surface.getTextDisplay().clearRow(0).clearRow(1);
    d.setCell(1, 0, "Oct Down").setCell(1, 1, " Oct Up").setCell(1, 2, "Res Down").setCell(1, 3, " Res Up");
    d.setCell(1, 4, "  Left").setCell(1, 5, "  Right").setCell(1, 7, "Play/Seq");
    d.done(0).done(1);
}
Also used : ITextDisplay(de.mossgrabers.framework.controller.display.ITextDisplay)

Example 38 with ITextDisplay

use of de.mossgrabers.framework.controller.display.ITextDisplay in project DrivenByMoss by git-moss.

the class SLVolumeMode method updateDisplay.

/**
 * {@inheritDoc}
 */
@Override
public void updateDisplay() {
    final ITextDisplay d = this.surface.getTextDisplay().clearRow(2).clearRow(3);
    final ITrackBank tb = this.model.getCurrentTrackBank();
    for (int i = 0; i < 8; i++) {
        final ITrack t = tb.getItem(i);
        final String n = t.getName();
        d.setCell(2, i, StringUtils.shortenAndFixASCII(t.isSelected() ? SLDisplay.RIGHT_ARROW + n : n, 8));
        d.setCell(3, i, t.getVolumeStr(8));
    }
    d.done(2).done(3);
}
Also used : ITrack(de.mossgrabers.framework.daw.data.ITrack) ITrackBank(de.mossgrabers.framework.daw.data.bank.ITrackBank) ITextDisplay(de.mossgrabers.framework.controller.display.ITextDisplay)

Example 39 with ITextDisplay

use of de.mossgrabers.framework.controller.display.ITextDisplay in project DrivenByMoss by git-moss.

the class TrackTogglesMode method updateDisplay.

/**
 * {@inheritDoc}
 */
@Override
public void updateDisplay() {
    final ITrack cursorTrack = this.model.getCursorTrack();
    final ITextDisplay d = this.surface.getTextDisplay().clearRow(0).clearRow(1);
    if (!cursorTrack.doesExist()) {
        d.setRow(0, "                        Please select a track...                       ").done(0).done(1);
        return;
    }
    final ICursorDevice device = this.model.getCursorDevice();
    d.setCell(0, 0, "  Mute");
    d.setCell(1, 0, cursorTrack.isMute() ? ON : OFF);
    d.setCell(0, 1, "  Solo");
    d.setCell(1, 1, cursorTrack.isSolo() ? ON : OFF);
    d.setCell(0, 2, "Rec Arm");
    d.setCell(1, 2, cursorTrack.isRecArm() ? ON : OFF);
    d.setCell(0, 3, " Write");
    d.setCell(1, 3, this.model.getTransport().isWritingArrangerAutomation() ? ON : OFF);
    d.setCell(0, 4, " Browse");
    d.setCell(1, 4, "");
    d.setCell(0, 5, device.doesExist() ? device.getName(8) : "None");
    d.setCell(1, 5, device.isEnabled() ? "Enabled" : "Disabled");
    d.setCell(0, 6, "<<Device").setCell(2, 6, "");
    d.setCell(0, 7, "Device>>").setCell(2, 7, "").done(0).done(2);
    d.done(0).done(1);
}
Also used : ITrack(de.mossgrabers.framework.daw.data.ITrack) ITextDisplay(de.mossgrabers.framework.controller.display.ITextDisplay) ICursorDevice(de.mossgrabers.framework.daw.data.ICursorDevice)

Example 40 with ITextDisplay

use of de.mossgrabers.framework.controller.display.ITextDisplay in project DrivenByMoss by git-moss.

the class LaunchkeyMk3PanoramaMode method updateDisplay.

/**
 * {@inheritDoc}
 */
@Override
public void updateDisplay() {
    final ITextDisplay d = this.surface.getTextDisplay();
    d.setCell(LaunchkeyMk3Display.SCREEN_ROW_BASE, 0, "Pan   " + this.formatPageRange(" %d - %d"));
    final ICursorTrack cursorTrack = this.model.getCursorTrack();
    final String trackText = cursorTrack.doesExist() ? String.format("%d: %s", Integer.valueOf(cursorTrack.getPosition() + 1), cursorTrack.getName()) : "No sel. track";
    d.setCell(LaunchkeyMk3Display.SCREEN_ROW_BASE + 1, 0, trackText);
    // Format track names
    final ITrackBank tb = this.model.getCurrentTrackBank();
    for (int i = 0; i < 8; i++) {
        final ITrack t = tb.getItem(i);
        final boolean exists = t.doesExist();
        final int offset = i * 2;
        d.setCell(LaunchkeyMk3Display.SCREEN_ROW_POTS + offset, 0, exists ? String.format("%d: %s", Integer.valueOf(t.getPosition() + 1), t.getName()) : "No track");
        d.setCell(LaunchkeyMk3Display.SCREEN_ROW_POTS + offset + 1, 0, exists ? "Pan: " + t.getPanStr() : "");
    }
    d.allDone();
}
Also used : ITrack(de.mossgrabers.framework.daw.data.ITrack) ITrackBank(de.mossgrabers.framework.daw.data.bank.ITrackBank) ICursorTrack(de.mossgrabers.framework.daw.data.ICursorTrack) ITextDisplay(de.mossgrabers.framework.controller.display.ITextDisplay)

Aggregations

ITextDisplay (de.mossgrabers.framework.controller.display.ITextDisplay)49 ITrack (de.mossgrabers.framework.daw.data.ITrack)16 ITrackBank (de.mossgrabers.framework.daw.data.bank.ITrackBank)16 ICursorDevice (de.mossgrabers.framework.daw.data.ICursorDevice)8 IParameter (de.mossgrabers.framework.daw.data.IParameter)6 IMasterTrack (de.mossgrabers.framework.daw.data.IMasterTrack)5 IParameterBank (de.mossgrabers.framework.daw.data.bank.IParameterBank)5 IBrowser (de.mossgrabers.framework.daw.IBrowser)4 ITransport (de.mossgrabers.framework.daw.ITransport)4 IBrowserColumn (de.mossgrabers.framework.daw.data.IBrowserColumn)4 ICursorTrack (de.mossgrabers.framework.daw.data.ICursorTrack)4 ISend (de.mossgrabers.framework.daw.data.ISend)4 ISendBank (de.mossgrabers.framework.daw.data.bank.ISendBank)4 IBrowserColumnItem (de.mossgrabers.framework.daw.data.IBrowserColumnItem)3 Scales (de.mossgrabers.framework.scale.Scales)2 IGraphicDisplay (de.mossgrabers.framework.controller.display.IGraphicDisplay)1 IApplication (de.mossgrabers.framework.daw.IApplication)1 IStepInfo (de.mossgrabers.framework.daw.IStepInfo)1 GridStep (de.mossgrabers.framework.daw.data.GridStep)1 IMarker (de.mossgrabers.framework.daw.data.IMarker)1