Class SquareLFO

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

public class SquareLFO extends LXRangeModulator
Simple square wave LFO. Not damped. Oscillates between a low and high value.
  • Constructor Details

    • SquareLFO

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    • 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