Search in sources :

Example 1 with IStepInfo

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

the class CursorClipImpl method changeStepGain.

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

Example 2 with IStepInfo

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

the class CursorClipImpl method changeStepPan.

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

Example 3 with IStepInfo

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

the class CursorClipImpl method changeChance.

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

Example 4 with IStepInfo

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

the class CursorClipImpl method changeStepTranspose.

/**
 * {@inheritDoc}
 */
@Override
public void changeStepTranspose(final int channel, final int step, final int row, final int control) {
    final IStepInfo info = this.getStep(channel, step, row);
    final double transpose = info.getTranspose() + this.valueChanger.calcSteppedKnobChange(control) / 10.0;
    this.updateStepTranspose(channel, step, row, transpose);
}
Also used : IStepInfo(de.mossgrabers.framework.daw.IStepInfo)

Example 5 with IStepInfo

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

the class CursorClipImpl method changeRepeatVelocityEnd.

/**
 * {@inheritDoc}
 */
@Override
public void changeRepeatVelocityEnd(final int channel, final int step, final int row, final int control) {
    final IStepInfo info = this.getStep(channel, step, row);
    final double velocityEnd = info.getRepeatVelocityEnd() + this.valueChanger.toNormalizedValue((int) this.valueChanger.calcKnobChange(control));
    this.updateRepeatVelocityEnd(channel, step, row, velocityEnd);
}
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