public class DampedParameter 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 |
---|
DampedParameter(LXParameter parameter,
double velocity) |
DampedParameter(LXParameter parameter,
double velocity,
double acceleration) |
DampedParameter(LXParameter parameter,
double velocity,
double acceleration,
double deceleration) |
DampedParameter(LXParameter parameter,
LXParameter velocity) |
DampedParameter(LXParameter parameter,
LXParameter velocity,
LXParameter acceleration) |
DampedParameter(LXParameter parameter,
LXParameter velocity,
LXParameter acceleration,
LXParameter deceleration) |
DampedParameter(String label,
double velocity) |
DampedParameter(String label,
LXParameter parameter,
double velocity,
double acceleration) |
DampedParameter(String label,
LXParameter parameter,
double velocity,
double acceleration,
double deceleration) |
DampedParameter(String label,
LXParameter parameter,
LXParameter velocity) |
DampedParameter(String label,
LXParameter parameter,
LXParameter velocity,
double acceleration) |
DampedParameter(String label,
LXParameter parameter,
LXParameter velocity,
double acceleration,
double deceleration) |
DampedParameter(String label,
LXParameter parameter,
LXParameter velocity,
LXParameter acceleration) |
DampedParameter(String label,
LXParameter parameter,
LXParameter velocity,
LXParameter acceleration,
LXParameter deceleration) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeValue(double deltaMs)
Implementation method to advance the modulator's internal state.
|
LXParameter |
getParameter() |
DampedParameter |
setModulus(boolean hasModulus)
Sets whether a modulus value is used.
|
DampedParameter |
setModulus(double modulus)
Sets a modulus at which values wrap around
|
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 DampedParameter(String label, double velocity)
public DampedParameter(LXParameter parameter, double velocity)
public DampedParameter(LXParameter parameter, double velocity, double acceleration)
public DampedParameter(LXParameter parameter, double velocity, double acceleration, double deceleration)
public DampedParameter(LXParameter parameter, LXParameter velocity)
public DampedParameter(LXParameter parameter, LXParameter velocity, LXParameter acceleration)
public DampedParameter(LXParameter parameter, LXParameter velocity, LXParameter acceleration, LXParameter deceleration)
public DampedParameter(String label, LXParameter parameter, LXParameter velocity)
public DampedParameter(String label, LXParameter parameter, double velocity, double acceleration)
public DampedParameter(String label, LXParameter parameter, double velocity, double acceleration, double deceleration)
public DampedParameter(String label, LXParameter parameter, LXParameter velocity, double acceleration)
public DampedParameter(String label, LXParameter parameter, LXParameter velocity, double acceleration, double deceleration)
public DampedParameter(String label, LXParameter parameter, LXParameter velocity, LXParameter acceleration)
public DampedParameter(String label, LXParameter parameter, LXParameter velocity, LXParameter acceleration, LXParameter deceleration)
public DampedParameter setModulus(double modulus)
modulus
- Modulus valuepublic DampedParameter setModulus(boolean hasModulus)
hasModulus
- Whether to use modulusprotected double computeValue(double deltaMs)
LXModulator
computeValue
in class LXModulator
deltaMs
- Number of milliseconds to advance bypublic LXParameter getParameter()
LX library by Mark C. Slee. © 2012-2020