public class SquareLFO extends LXRangeModulator
LXComponent.Placeholder, LXComponent.Renamable
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units
LXSerializable.Utils
looping, tempoDivision, tempoLock, tempoSync
runMs, running, trigger
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Constructor and Description |
---|
SquareLFO(double startValue,
double endValue,
double periodMs) |
SquareLFO(double startValue,
double endValue,
LXParameter periodMs) |
SquareLFO(double startValue,
LXParameter endValue,
double periodMs) |
SquareLFO(double startValue,
LXParameter endValue,
LXParameter periodMs) |
SquareLFO(LXParameter startValue,
double endValue,
double periodMs) |
SquareLFO(LXParameter startValue,
double endValue,
LXParameter periodMs) |
SquareLFO(LXParameter startValue,
LXParameter endValue,
double periodMs) |
SquareLFO(LXParameter startValue,
LXParameter endValue,
LXParameter periodMs) |
SquareLFO(String label,
double startValue,
double endValue,
double periodMs) |
SquareLFO(String label,
double startValue,
double endValue,
LXParameter periodMs) |
SquareLFO(String label,
double startValue,
LXParameter endValue,
double periodMs) |
SquareLFO(String label,
double startValue,
LXParameter endValue,
LXParameter periodMs) |
SquareLFO(String label,
LXParameter startValue,
double endValue,
double periodMs) |
SquareLFO(String label,
LXParameter startValue,
double endValue,
LXParameter periodMs) |
SquareLFO(String label,
LXParameter startValue,
LXParameter endValue,
double periodMs) |
SquareLFO(String label,
LXParameter startValue,
LXParameter endValue,
LXParameter periodMs) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeNormalizedBasis(double basis,
double normalizedValue)
Subclasses determine the basis based on a normalized value from 0 to 1.
|
protected double |
computeNormalizedValue(double deltaMs,
double basis)
Subclasses implement this which returns their value from a 0-1 scale.
|
computeBasis, computeValue, getExponent, getNormalized, getNormalizedf, onSetValue, setEndValue, setEndValue, setExponent, setNormalized, setRange, setRange, setRangeFromHereTo, setRangeFromHereTo, setStartValue, setStartValue
computeValue, finished, getBasis, getBasisf, getPeriod, getPeriodf, load, loop, loop, onParameterChanged, onReset, randomBasis, save, setBasis, setLooping, setPeriod, setPeriod, updateBasis
getDescription, getFormatter, getIndex, getOscAddress, getOscPath, getPath, getPolarity, getUnits, getValue, getValuef, run, setComponent, setDescription, setFormatter, setIndex, setPolarity, setUnits, setValue, setValue, updateValue
isRunning, 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, loadParameters, removeParameter, removeParameter, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dispose, getDescription, getFormatter, getLabel, getPolarity, getUnits, getValue, getValuef, isMappable, reset, setComponent, setMappable, setValue
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter, getParent, getPath
public SquareLFO(double startValue, double endValue, double periodMs)
public SquareLFO(LXParameter startValue, double endValue, double periodMs)
public SquareLFO(double startValue, LXParameter endValue, double periodMs)
public SquareLFO(double startValue, double endValue, LXParameter periodMs)
public SquareLFO(LXParameter startValue, LXParameter endValue, double periodMs)
public SquareLFO(LXParameter startValue, double endValue, LXParameter periodMs)
public SquareLFO(double startValue, LXParameter endValue, LXParameter periodMs)
public SquareLFO(LXParameter startValue, LXParameter endValue, LXParameter periodMs)
public SquareLFO(String label, double startValue, double endValue, double periodMs)
public SquareLFO(String label, LXParameter startValue, double endValue, double periodMs)
public SquareLFO(String label, double startValue, LXParameter endValue, double periodMs)
public SquareLFO(String label, double startValue, double endValue, LXParameter periodMs)
public SquareLFO(String label, LXParameter startValue, LXParameter endValue, double periodMs)
public SquareLFO(String label, LXParameter startValue, double endValue, LXParameter periodMs)
public SquareLFO(String label, double startValue, LXParameter endValue, LXParameter periodMs)
public SquareLFO(String label, LXParameter startValue, LXParameter endValue, LXParameter periodMs)
protected double computeNormalizedValue(double deltaMs, double basis)
LXRangeModulator
computeNormalizedValue
in class LXRangeModulator
deltaMs
- Milliseconds elapsedbasis
- Basis of modulatorprotected double computeNormalizedBasis(double basis, double normalizedValue)
LXRangeModulator
computeNormalizedBasis
in class LXRangeModulator
basis
- Modulator basisnormalizedValue
- A normalize value from 0 to 1LX library by Mark C. Slee. © 2012-2020