use of de.mossgrabers.framework.controller.grid.ILightGuide in project DrivenByMoss by git-moss.
the class ControlView method drawGrid.
/**
* {@inheritDoc}
*/
@Override
public void drawGrid() {
final ILightGuide lightGuide = this.surface.getLightGuide();
if (this.model.getHost().supports(Capability.HAS_DRUM_DEVICE) && this.model.canSelectedTrackHoldNotes()) {
final IDrumDevice primary = this.model.getDrumDevice();
if (primary.hasDrumPads()) {
final boolean isRecording = this.model.hasRecordingState();
for (int i = this.scales.getStartNote(); i < this.scales.getEndNote(); i++) lightGuide.light(i, this.getDrumPadColor(i, primary, isRecording));
return;
}
}
this.drawLightGuide(lightGuide);
}
Aggregations