Class SawLFO

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

public class SawLFO extends LXRangeModulator
A sawtooth LFO oscillates from one extreme value to another. When the later value is hit, the oscillator rests to its initial value.
  • Constructor Details

  • Method Details

    • computeNormalizedValue

      protected final 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 final 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