Class DampedParameter

All Implemented Interfaces:
LXComponent.Renamable, LXLoopTask, LXPath, LXSerializable, LXParameter, LXParameterListener

public class DampedParameter extends LXModulator
A modulator that tracks the value of a parameter but damps motion over time according to rules.
  • Constructor Details

  • Method Details

    • setModulus

      public DampedParameter setModulus(double modulus)
      Sets a modulus at which values wrap around
      Parameters:
      modulus - Modulus value
      Returns:
      this
    • setModulus

      public DampedParameter setModulus(boolean hasModulus)
      Sets whether a modulus value is used.
      Parameters:
      hasModulus - Whether to use modulus
      Returns:
      this
    • computeValue

      protected double computeValue(double deltaMs)
      Description copied from class: LXModulator
      Implementation method to advance the modulator's internal state. Subclasses must provide and update value appropriately.
      Specified by:
      computeValue in class LXModulator
      Parameters:
      deltaMs - Number of milliseconds to advance by
      Returns:
      Computed value
    • getParameter

      public LXParameter getParameter()