Search in sources :

Example 21 with IStepInfo

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

the class CursorClipImpl method changeRepeatVelocityCurve.

/**
 * {@inheritDoc}
 */
@Override
public void changeRepeatVelocityCurve(final int channel, final int step, final int row, final int control) {
    final IStepInfo info = this.getStep(channel, step, row);
    final double velocityCurve = info.getRepeatVelocityCurve() + this.valueChanger.toNormalizedValue((int) this.valueChanger.calcKnobChange(control));
    this.updateRepeatVelocityCurve(channel, step, row, velocityCurve);
}
Also used : IStepInfo(de.mossgrabers.framework.daw.IStepInfo)

Example 22 with IStepInfo

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

the class CursorClipImpl method changeStepReleaseVelocity.

/**
 * {@inheritDoc}
 */
@Override
public void changeStepReleaseVelocity(final int channel, final int step, final int row, final int control) {
    final IStepInfo info = this.getStep(channel, step, row);
    final double velocity = info.getReleaseVelocity() + this.valueChanger.toNormalizedValue((int) this.valueChanger.calcKnobChange(control));
    this.updateStepReleaseVelocity(channel, step, row, velocity);
}
Also used : IStepInfo(de.mossgrabers.framework.daw.IStepInfo)

Example 23 with IStepInfo

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

the class CursorClipImpl method changeStepVelocity.

/**
 * {@inheritDoc}
 */
@Override
public void changeStepVelocity(final int channel, final int step, final int row, final int control) {
    final IStepInfo info = this.getStep(channel, step, row);
    final double velocity = info.getVelocity() + this.valueChanger.toNormalizedValue((int) this.valueChanger.calcKnobChange(control));
    this.updateStepVelocity(channel, step, row, velocity);
}
Also used : IStepInfo(de.mossgrabers.framework.daw.IStepInfo)

Example 24 with IStepInfo

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

the class CursorClipImpl method changeStepDuration.

/**
 * {@inheritDoc}
 */
@Override
public void changeStepDuration(final int channel, final int step, final int row, final int control) {
    final IStepInfo info = this.getStep(channel, step, row);
    final boolean increase = this.valueChanger.isIncrease(control);
    final double res = Resolution.RES_1_32.getValue();
    this.updateStepDuration(channel, step, row, Math.max(0, info.getDuration() + (increase ? res : -res)));
}
Also used : IStepInfo(de.mossgrabers.framework.daw.IStepInfo)

Example 25 with IStepInfo

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

the class CursorClipImpl method changeVelocitySpread.

/**
 * {@inheritDoc}
 */
@Override
public void changeVelocitySpread(final int channel, final int step, final int row, final int control) {
    final IStepInfo info = this.getStep(channel, step, row);
    final double velocitySpread = info.getVelocitySpread() + this.valueChanger.toNormalizedValue((int) this.valueChanger.calcKnobChange(control));
    this.updateVelocitySpread(channel, step, row, velocitySpread);
}
Also used : IStepInfo(de.mossgrabers.framework.daw.IStepInfo)

Aggregations

IStepInfo (de.mossgrabers.framework.daw.IStepInfo)41 GridStep (de.mossgrabers.framework.daw.data.GridStep)18 IPadGrid (de.mossgrabers.framework.controller.grid.IPadGrid)7 StepState (de.mossgrabers.framework.daw.StepState)7 ColorEx (de.mossgrabers.framework.controller.color.ColorEx)6 INoteClip (de.mossgrabers.framework.daw.INoteClip)6 IHwButton (de.mossgrabers.framework.controller.hardware.IHwButton)4 IValueChanger (de.mossgrabers.framework.controller.valuechanger.IValueChanger)3 IDrumDevice (de.mossgrabers.framework.daw.data.IDrumDevice)3 NoteOccurrenceType (de.mossgrabers.framework.daw.NoteOccurrenceType)2 NoteStep (com.bitwig.extension.controller.api.NoteStep)1 SLMkIIIDisplay (de.mossgrabers.controller.novation.slmkiii.controller.SLMkIIIDisplay)1 ITextDisplay (de.mossgrabers.framework.controller.display.ITextDisplay)1 DefaultStepInfo (de.mossgrabers.framework.daw.DefaultStepInfo)1 ITrack (de.mossgrabers.framework.daw.data.ITrack)1 ModeManager (de.mossgrabers.framework.featuregroup.ModeManager)1 IGraphicsConfiguration (de.mossgrabers.framework.graphics.IGraphicsConfiguration)1 IGraphicsContext (de.mossgrabers.framework.graphics.IGraphicsContext)1