public abstract class HistoryBuffer extends LXModulator
LXComponent.Placeholder, LXComponent.Renamable
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units
LXSerializable.Utils
runMs, running, trigger
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Constructor and Description |
---|
HistoryBuffer(int size) |
HistoryBuffer(String label,
int size) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeValue(double deltaMs)
Implementation method to advance the modulator's internal state.
|
protected abstract double |
getFrameValue() |
double |
getHistory(float framesAgo) |
double |
getHistory(int framesAgo) |
double |
getHistory(int framesAgo,
int avgLength) |
float |
getHistoryf(int framesAgo) |
float |
getHistoryf(int framesAgo,
int avgLength) |
getDescription, getFormatter, getIndex, getOscAddress, getOscPath, getPath, getPolarity, getUnits, getValue, getValuef, onSetValue, run, setComponent, setDescription, setFormatter, setIndex, setPolarity, setUnits, setValue, setValue, updateValue
isRunning, loop, onParameterChanged, onReset, onStart, onStop, reset, start, stop, toggle, trigger
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, dispose, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscLabel, getParameter, getParameters, getParent, handleOscMessage, load, loadParameters, removeParameter, removeParameter, save, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dispose, getLabel, isMappable, reset, setMappable
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter, getParent
public HistoryBuffer(int size)
public HistoryBuffer(String label, int size)
protected double computeValue(double deltaMs)
LXModulator
computeValue
in class LXModulator
deltaMs
- Number of milliseconds to advance byprotected abstract double getFrameValue()
public double getHistory(float framesAgo)
public double getHistory(int framesAgo)
public float getHistoryf(int framesAgo)
public double getHistory(int framesAgo, int avgLength)
public float getHistoryf(int framesAgo, int avgLength)
LX library by Mark C. Slee. © 2012-2020