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);
}
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);
}
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);
}
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)));
}
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);
}
Aggregations