use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class TrackMode method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final Display d = this.surface.getDisplay().clear();
final IChannelBank currentTrackBank = this.model.getCurrentTrackBank();
final ITrack t = currentTrackBank.getSelectedTrack();
if (t == null)
d.setRow(1, " Please selecta track... ").done(0).done(2);
else {
final PushConfiguration config = this.surface.getConfiguration();
d.setCell(0, 0, "Volume").setCell(1, 0, t.getVolumeStr(8)).setCell(2, 0, config.isEnableVUMeters() ? t.getVu() : t.getVolume(), Format.FORMAT_VALUE);
d.setCell(0, 1, "Pan").setCell(1, 1, t.getPanStr(8)).setCell(2, 1, t.getPan(), Format.FORMAT_PAN);
int sendStart = 2;
int sendCount = 6;
if (config.isDisplayCrossfader()) {
sendStart = 3;
sendCount = 5;
final String crossfadeMode = t.getCrossfadeMode();
final int upperBound = this.model.getValueChanger().getUpperBound();
d.setCell(0, 2, "Crossfdr").setCell(1, 2, "A".equals(crossfadeMode) ? "A" : "B".equals(crossfadeMode) ? " B" : " <> ");
d.setCell(2, 2, "A".equals(crossfadeMode) ? 0 : "B".equals(crossfadeMode) ? upperBound : upperBound / 2, Format.FORMAT_PAN);
}
final boolean isEffectTrackBankActive = this.model.isEffectTrackBankActive();
for (int i = 0; i < sendCount; i++) {
final int pos = sendStart + i;
if (!isEffectTrackBankActive) {
final ISend send = t.getSend(i);
if (send.doesExist())
d.setCell(0, pos, send.getName()).setCell(1, pos, send.getDisplayedValue(8)).setCell(2, pos, send.getValue(), Format.FORMAT_VALUE);
}
}
d.done(0).done(1).done(2);
}
this.drawRow4();
}
use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class VolumeMode method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final Display d = this.surface.getDisplay();
final IChannelBank tb = this.model.getCurrentTrackBank();
final PushConfiguration config = this.surface.getConfiguration();
for (int i = 0; i < 8; i++) {
final ITrack t = tb.getTrack(i);
d.setCell(0, i, t.doesExist() ? "Volume" : "").setCell(1, i, t.getVolumeStr(8));
if (t.doesExist())
d.setCell(2, i, config.isEnableVUMeters() ? t.getVu() : t.getVolume(), Format.FORMAT_VALUE);
else
d.clearCell(2, i);
}
d.done(0).done(1).done(2);
this.drawRow4();
}
use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class ConfigurationMode method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final Display d = this.surface.getDisplay();
d.clear().setBlock(0, 0, "Pad Threshold").setBlock(1, 0, this.surface.getSelectedPadThreshold());
d.setBlock(0, 1, "Velocity Curve").setBlock(1, 1, this.surface.getSelectedVelocityCurve());
d.setBlock(0, 3, "Firmware: " + this.surface.getMajorVersion() + "." + this.surface.getMinorVersion()).allDone();
if (this.surface.getConfiguration().getPadThreshold() < 20)
d.setRow(3, " Warning:Low threshold maycause stuck pads ");
}
use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class FixedMode method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final Display d = this.surface.getDisplay();
d.clear().setBlock(1, 0, "Create Clip (leng").setBlock(1, 1, "th not stored):");
final int newClipLength = this.surface.getConfiguration().getNewClipLength();
d.setBlock(2, 0, "New Clip Length:");
for (int i = 0; i < 8; i++) {
d.setCell(0, i, AbstractConfiguration.NEW_CLIP_LENGTH_VALUES[i]);
d.setCell(3, i, (newClipLength == i ? PushDisplay.RIGHT_ARROW : "") + AbstractConfiguration.NEW_CLIP_LENGTH_VALUES[i]);
}
d.allDone();
}
use of de.mossgrabers.framework.controller.display.Display in project DrivenByMoss by git-moss.
the class GrooveMode method updateDisplay1.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay1() {
final Display d = this.surface.getDisplay();
final IParameter[] parameters = this.model.getGroove().getParameters();
final int quantizeAmount = this.surface.getConfiguration().getQuantizeAmount();
d.clear().setCell(0, 0, "Quant Amnt").setCell(1, 0, quantizeAmount + "%").setCell(2, 0, quantizeAmount * 1023 / 100, Format.FORMAT_VALUE);
for (int i = 0; i < parameters.length; i++) d.setCell(0, 2 + i, parameters[i].getName(8)).setCell(1, 2 + i, parameters[i].getDisplayedValue(8)).setCell(2, 2 + i, parameters[i].getValue(), Format.FORMAT_VALUE);
d.allDone();
}
Aggregations