Class QuadraticEnvelope

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

public class QuadraticEnvelope extends LXRangeModulator
A quadratic envelope moves from one value to another along a quadratic curve.
  • Constructor Details

    • QuadraticEnvelope

      public QuadraticEnvelope(double startValue, double endValue, double periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(LXParameter startValue, double endValue, double periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(double startValue, LXParameter endValue, double periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(double startValue, double endValue, LXParameter periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(LXParameter startValue, LXParameter endValue, double periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(LXParameter startValue, double endValue, LXParameter periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(double startValue, LXParameter endValue, LXParameter periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(LXParameter startValue, LXParameter endValue, LXParameter periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(String label, double startValue, double endValue, double periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(String label, LXParameter startValue, double endValue, double periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(String label, double startValue, LXParameter endValue, double periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(String label, double startValue, double endValue, LXParameter periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(String label, LXParameter startValue, LXParameter endValue, double periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(String label, LXParameter startValue, double endValue, LXParameter periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(String label, double startValue, LXParameter endValue, LXParameter periodMs)
    • QuadraticEnvelope

      public QuadraticEnvelope(String label, LXParameter startValue, LXParameter endValue, LXParameter periodMs)
  • Method Details

    • setEase

      Sets the easing type
      Parameters:
      ease - easing type
      Returns:
      this
    • computeNormalizedValue

      protected double computeNormalizedValue(double deltaMs, double basis)
      Description copied from class: LXRangeModulator
      Subclasses implement this which returns their value from a 0-1 scale. This class automatically takes care of scaling to the startValue/endValue range.
      Specified by:
      computeNormalizedValue in class LXRangeModulator
      Parameters:
      deltaMs - Milliseconds elapsed
      basis - Basis of modulator
      Returns:
      Modulator value
    • computeNormalizedBasis

      protected double computeNormalizedBasis(double basis, double normalizedValue)
      Description copied from class: LXRangeModulator
      Subclasses determine the basis based on a normalized value from 0 to 1.
      Specified by:
      computeNormalizedBasis in class LXRangeModulator
      Parameters:
      basis - Modulator basis
      normalizedValue - A normalize value from 0 to 1
      Returns:
      Computed normalized basis for modulator