Search in sources :

Example 1 with ILightGuide

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);
}
Also used : IDrumDevice(de.mossgrabers.framework.daw.data.IDrumDevice) ILightGuide(de.mossgrabers.framework.controller.grid.ILightGuide)

Aggregations

ILightGuide (de.mossgrabers.framework.controller.grid.ILightGuide)1 IDrumDevice (de.mossgrabers.framework.daw.data.IDrumDevice)1