use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class DeviceLayerModePan method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final Display d = this.surface.getDisplay();
final ICursorDevice cd = this.model.getCursorDevice();
// Drum Pad Bank has size of 16, layers only 8
final int offset = getDrumPadIndex(cd);
for (int i = 0; i < 8; i++) {
final IChannel layer = cd.getLayerOrDrumPad(offset + i);
d.setCell(0, i, layer.doesExist() ? "Pan" : "").setCell(1, i, layer.getPanStr(8));
if (layer.doesExist())
d.setCell(2, i, layer.getPan(), Format.FORMAT_VALUE);
else
d.clearCell(2, i);
}
d.done(0).done(1).done(2);
this.drawRow4(d, cd);
}
use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class DeviceLayerModeSend method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final Display d = this.surface.getDisplay();
final ICursorDevice cd = this.model.getCursorDevice();
// Drum Pad Bank has size of 16, layers only 8
final int offset = getDrumPadIndex(cd);
final int sendIndex = this.getCurrentSendIndex();
for (int i = 0; i < 8; i++) {
final IChannel layer = cd.getLayerOrDrumPad(offset + i);
final boolean exists = layer.doesExist();
final ISend send = layer.getSend(sendIndex);
d.setCell(0, i, exists ? send.getName() : "").setCell(1, i, send.getDisplayedValue(8));
if (exists)
d.setCell(2, i, send.getValue(), Format.FORMAT_VALUE);
else
d.clearCell(2, i);
}
d.done(0).done(1).done(2);
this.drawRow4(d, cd);
}
use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class AutomationMode method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final Display d = this.surface.getDisplay();
final String writeMode = this.model.getTransport().getAutomationWriteMode();
d.clear().setBlock(1, 0, "Automation Mode:");
for (int i = 0; i < ITransport.AUTOMATION_MODES.length; i++) d.setCell(3, i, (ITransport.AUTOMATION_MODES_VALUES[i].equals(writeMode) ? PushDisplay.RIGHT_ARROW : "") + ITransport.AUTOMATION_MODES[i]);
d.allDone();
}
use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class FrameMode method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final IApplication app = this.model.getApplication();
final Display d = this.surface.getDisplay();
d.setRow(0, FrameMode.ROW0).setRow(1, FrameMode.ROW1).setRow(2, app.isArrangeLayout() ? FrameMode.ARRANGER_ROW2 : app.isMixerLayout() ? FrameMode.MIXER_ROW2 : FrameMode.EMPTY).setRow(3, app.isArrangeLayout() ? FrameMode.ARRANGER_ROW3 : app.isMixerLayout() ? FrameMode.MIXER_ROW3 : FrameMode.EMPTY);
}
use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class NoteMode method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final int quarters = (int) Math.floor(this.noteLength);
final int fine = (int) Math.floor(this.noteLength * 100) % 100;
final Display d = this.surface.getDisplay();
d.clear().setCell(0, 0, "Quarters").setCell(1, 0, Integer.toString(quarters));
d.setCell(0, 1, "Fine").setCell(1, 1, Integer.toString(fine));
d.setCell(0, 2, "Velocity").setCell(1, 2, Integer.toString(this.noteVelocity * 100 / 127) + "%").allDone();
}
Aggregations