Class HistoryBuffer

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

public abstract class HistoryBuffer extends LXModulator
  • Constructor Details

    • HistoryBuffer

      public HistoryBuffer(int size)
    • HistoryBuffer

      public HistoryBuffer(String label, int size)
  • Method Details

    • 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
    • getFrameValue

      protected abstract double getFrameValue()
    • getHistory

      public double getHistory(float framesAgo)
    • getHistory

      public double getHistory(int framesAgo)
    • getHistoryf

      public float getHistoryf(int framesAgo)
    • getHistory

      public double getHistory(int framesAgo, int avgLength)
    • getHistoryf

      public float getHistoryf(int framesAgo, int avgLength)