Class StepModulator

All Implemented Interfaces:
LXComponent.Renamable, LXLoopTask, LXPath, LXSerializable, LXParameter, LXParameterListener
Direct Known Subclasses:
Stepper, StepSequencer

public abstract class StepModulator extends LXPeriodicModulator
  • Field Details

  • Constructor Details

    • StepModulator

      protected StepModulator(String label)
  • Method Details

    • onParameterChanged

      public void onParameterChanged(LXParameter p)
      Description copied from class: LXComponent
      Subclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.
      Specified by:
      onParameterChanged in interface LXParameterListener
      Overrides:
      onParameterChanged in class LXPeriodicModulator
      Parameters:
      p - Parameter that has a value change
    • computeValue

      protected final double computeValue(double deltaMs, double basis)
      Description copied from class: LXPeriodicModulator
      Implementation method to compute the value of a modulator given its basis.
      Specified by:
      computeValue in class LXPeriodicModulator
      Parameters:
      deltaMs - Milliseconds elapsed
      basis - Basis of the modulator
      Returns:
      Value of modulator
    • getStepValue

      protected double getStepValue(double deltaMs, double basis)
    • computeBasis

      protected double computeBasis(double basis, double value)
      Description copied from class: LXPeriodicModulator
      Implementation method to compute the appropriate basis for a modulator given its current basis and value.
      Specified by:
      computeBasis in class LXPeriodicModulator
      Parameters:
      basis - Last basis of modulator
      value - Current value of modulator
      Returns:
      Basis of modulator
    • onStep

      protected void onStep(boolean trigger)