public class ADEnvelope extends LXModulator implements LXNormalizedParameter
LXComponent.Placeholder, LXComponent.Renamable
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
BooleanParameter |
engage |
runMs, running, trigger
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Constructor and Description |
---|
ADEnvelope(String label,
double startValue,
double endValue,
LXParameter attack,
LXParameter decay) |
ADEnvelope(String label,
double startValue,
double endValue,
LXParameter attack,
LXParameter decay,
LXParameter shape) |
ADEnvelope(String label,
double startValue,
LXParameter endValue,
LXParameter attack,
LXParameter decay) |
ADEnvelope(String label,
double startValue,
LXParameter endValue,
LXParameter attack,
LXParameter decay,
LXParameter shape) |
ADEnvelope(String label,
LXParameter startValue,
LXParameter endValue,
LXParameter attack,
LXParameter decay,
LXParameter shape) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeValue(double deltaMs)
Implementation method to advance the modulator's internal state.
|
double |
getExponent()
Gets the exponent used for scaling this parameter across its normalized range.
|
double |
getNormalized()
Gets the value of the parameter in a normalized space from 0 to 1
|
float |
getNormalizedf()
Gets the value of the parameter in a normalized space as a float
|
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
void |
onReset()
Optional subclass method when reset happens.
|
LXNormalizedParameter |
setNormalized(double value)
Sets the value or the parameter in normalized space from 0 to 1
|
getDescription, getFormatter, getIndex, getOscAddress, getOscPath, getPath, getPolarity, getUnits, getValue, getValuef, onSetValue, run, setComponent, setDescription, setFormatter, setIndex, setPolarity, setUnits, setValue, setValue, updateValue
isRunning, loop, 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, 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 final BooleanParameter engage
public ADEnvelope(String label, LXParameter startValue, LXParameter endValue, LXParameter attack, LXParameter decay, LXParameter shape)
public ADEnvelope(String label, double startValue, double endValue, LXParameter attack, LXParameter decay)
public ADEnvelope(String label, double startValue, double endValue, LXParameter attack, LXParameter decay, LXParameter shape)
public ADEnvelope(String label, double startValue, LXParameter endValue, LXParameter attack, LXParameter decay)
public ADEnvelope(String label, double startValue, LXParameter endValue, LXParameter attack, LXParameter decay, LXParameter shape)
public void onReset()
LXRunnableComponent
onReset
in class LXRunnableComponent
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXRunnableComponent
p
- Parameter that has a value changepublic LXNormalizedParameter setNormalized(double value)
LXNormalizedParameter
setNormalized
in interface LXNormalizedParameter
value
- The normalized value, from 0 to 1public double getNormalized()
LXNormalizedParameter
getNormalized
in interface LXNormalizedParameter
public float getNormalizedf()
LXNormalizedParameter
getNormalizedf
in interface LXNormalizedParameter
public double getExponent()
LXNormalizedParameter
getExponent
in interface LXNormalizedParameter
protected double computeValue(double deltaMs)
LXModulator
computeValue
in class LXModulator
deltaMs
- Number of milliseconds to advance byLX library by Mark C. Slee. © 2012-2020