Search in sources :

Example 46 with Display

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();
}
Also used : PushConfiguration(de.mossgrabers.push.PushConfiguration) ITrack(de.mossgrabers.framework.daw.data.ITrack) IChannelBank(de.mossgrabers.framework.daw.IChannelBank) ISend(de.mossgrabers.framework.daw.data.ISend) Display(de.mossgrabers.framework.controller.display.Display) PushDisplay(de.mossgrabers.push.controller.PushDisplay)

Example 47 with Display

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();
}
Also used : PushConfiguration(de.mossgrabers.push.PushConfiguration) ITrack(de.mossgrabers.framework.daw.data.ITrack) IChannelBank(de.mossgrabers.framework.daw.IChannelBank) Display(de.mossgrabers.framework.controller.display.Display)

Example 48 with Display

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 ");
}
Also used : Display(de.mossgrabers.framework.controller.display.Display)

Example 49 with Display

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();
}
Also used : Display(de.mossgrabers.framework.controller.display.Display) PushDisplay(de.mossgrabers.push.controller.PushDisplay)

Example 50 with Display

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();
}
Also used : IParameter(de.mossgrabers.framework.daw.data.IParameter) Display(de.mossgrabers.framework.controller.display.Display) PushDisplay(de.mossgrabers.push.controller.PushDisplay)

Aggregations

Display (de.mossgrabers.framework.controller.display.Display)53 PushDisplay (de.mossgrabers.push.controller.PushDisplay)22 IChannelBank (de.mossgrabers.framework.daw.IChannelBank)18 ITrack (de.mossgrabers.framework.daw.data.ITrack)18 ICursorDevice (de.mossgrabers.framework.daw.ICursorDevice)10 ISend (de.mossgrabers.framework.daw.data.ISend)6 IChannel (de.mossgrabers.framework.daw.data.IChannel)5 IMasterTrack (de.mossgrabers.framework.daw.data.IMasterTrack)4 IParameter (de.mossgrabers.framework.daw.data.IParameter)4 PushConfiguration (de.mossgrabers.push.PushConfiguration)4 SLDisplay (de.mossgrabers.sl.controller.SLDisplay)4 IBrowser (de.mossgrabers.framework.daw.IBrowser)3 IBrowserColumn (de.mossgrabers.framework.daw.data.IBrowserColumn)3 IBrowserColumnItem (de.mossgrabers.framework.daw.data.IBrowserColumnItem)3 ViewManager (de.mossgrabers.framework.view.ViewManager)3 IApplication (de.mossgrabers.framework.daw.IApplication)2 MCUConfiguration (de.mossgrabers.mcu.MCUConfiguration)2 IValueChanger (de.mossgrabers.framework.controller.IValueChanger)1 ICursorClip (de.mossgrabers.framework.daw.ICursorClip)1 ISceneBank (de.mossgrabers.framework.daw.ISceneBank)1