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