use of de.mossgrabers.push.controller.PushDisplay in project DrivenByMoss by git-moss.
the class AccentMode method updateDisplay2.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay2() {
final int fixedAccentValue = this.surface.getConfiguration().getFixedAccentValue();
final IValueChanger valueChanger = this.model.getValueChanger();
final PushDisplay display = (PushDisplay) this.surface.getDisplay();
final DisplayMessage message = display.createMessage();
for (int i = 0; i < 8; i++) message.addParameterElement(i == 7 ? "Accent" : "", i == 7 ? valueChanger.toDisplayValue(valueChanger.toDAWValue(fixedAccentValue)) : 0, i == 7 ? Integer.toString(fixedAccentValue) : "", this.isKnobTouched[i], -1);
display.send(message);
}
Aggregations