Search in sources :

Example 71 with ICursorDevice

use of de.mossgrabers.framework.daw.ICursorDevice in project DrivenByMoss by git-moss.

the class DrumView method handleSelectButton.

/**
 * {@inheritDoc}
 */
@Override
public void handleSelectButton(final int playedPad) {
    final ICursorDevice primary = this.model.getPrimaryDevice();
    if (!primary.hasDrumPads())
        return;
    // Do not reselect
    if (primary.getDrumPad(playedPad).isSelected())
        return;
    final ICursorDevice cd = this.model.getCursorDevice();
    if (cd.isNested())
        cd.selectParent();
    this.surface.getModeManager().setActiveMode(Modes.MODE_DEVICE_LAYER);
    primary.selectDrumPad(playedPad);
    this.updateNoteMapping();
}
Also used : ICursorDevice(de.mossgrabers.framework.daw.ICursorDevice)

Example 72 with ICursorDevice

use of de.mossgrabers.framework.daw.ICursorDevice in project DrivenByMoss by git-moss.

the class DrumView64 method handleSelectButton.

/**
 * {@inheritDoc}
 */
@Override
protected void handleSelectButton(final int playedPad) {
    final ICursorDevice drumDevice64 = this.model.getDrumDevice64();
    if (!drumDevice64.hasDrumPads())
        return;
    // Do not reselect
    if (drumDevice64.getDrumPad(playedPad).isSelected())
        return;
    final ICursorDevice cd = this.model.getCursorDevice();
    if (cd.isNested())
        cd.selectParent();
    this.surface.getModeManager().setActiveMode(Modes.MODE_DEVICE_LAYER);
    drumDevice64.selectDrumPad(playedPad);
}
Also used : ICursorDevice(de.mossgrabers.framework.daw.ICursorDevice)

Aggregations

ICursorDevice (de.mossgrabers.framework.daw.ICursorDevice)72 IChannel (de.mossgrabers.framework.daw.data.IChannel)25 IChannelBank (de.mossgrabers.framework.daw.IChannelBank)22 ITrack (de.mossgrabers.framework.daw.data.ITrack)19 Display (de.mossgrabers.framework.controller.display.Display)10 ModeManager (de.mossgrabers.framework.mode.ModeManager)9 View (de.mossgrabers.framework.view.View)8 ViewManager (de.mossgrabers.framework.view.ViewManager)8 ITrackBank (de.mossgrabers.framework.daw.ITrackBank)7 IParameter (de.mossgrabers.framework.daw.data.IParameter)6 ITransport (de.mossgrabers.framework.daw.ITransport)5 PushConfiguration (de.mossgrabers.push.PushConfiguration)5 ICursorClip (de.mossgrabers.framework.daw.ICursorClip)4 IMasterTrack (de.mossgrabers.framework.daw.data.IMasterTrack)4 SceneView (de.mossgrabers.framework.view.SceneView)4 APCControlSurface (de.mossgrabers.apc.controller.APCControlSurface)3 IBrowser (de.mossgrabers.framework.daw.IBrowser)3 Scales (de.mossgrabers.framework.scale.Scales)3 AbstractSequencerView (de.mossgrabers.framework.view.AbstractSequencerView)3 DrumView (de.mossgrabers.launchpad.view.DrumView)3