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