public class CompoundParameter extends BoundedParameter
BoundedParameter.RangeLXParameter.Formatter, LXParameter.Polarity, LXParameter.Units| Modifier and Type | Field and Description |
|---|---|
List<LXCompoundModulation> |
modulations |
rangedescription| Constructor and Description |
|---|
CompoundParameter(LXListenableParameter underlying,
double v0,
double v1)
Creates a CompoundParameter which limits the value of an underlying MutableParameter to a given
range.
|
CompoundParameter(String label)
Labeled parameter with value of 0 and range of 0-1
|
CompoundParameter(String label,
double value)
A bounded parameter with label and value, initial value of 0 and a range of 0-1
|
CompoundParameter(String label,
double value,
double max)
A bounded parameter with an initial value, and range from 0 to max
|
CompoundParameter(String label,
double value,
double v0,
double v1)
A bounded parameter with initial value and range from v0 to v1.
|
| Modifier and Type | Method and Description |
|---|---|
CompoundParameter |
addModulation(LXCompoundModulation modulation)
Adds a modulation to this parameter
|
double |
getBaseNormalized() |
float |
getBaseNormalizedf() |
double |
getBaseValue() |
float |
getBaseValuef() |
double |
getNormalized()
Gets a normalized value of the parameter from 0 to 1
|
double |
getValue()
Retrieves the value of the parameter
|
CompoundParameter |
removeModulation(LXCompoundModulation modulation)
Removes a modulation from this parameter
|
CompoundParameter |
setDescription(String description) |
CompoundParameter |
setExponent(double exponent) |
CompoundParameter |
setPolarity(LXParameter.Polarity polarity) |
getNormalizedf, getRange, incrementValue, setNormalized, updateValuegetExponent, isMappable, setMappableaddListener, bang, dispose, getDescription, getFormatter, getLabel, getParent, getPath, getPolarity, getUnits, getValuef, incrementValue, removeListener, reset, reset, setComponent, setFormatter, setUnits, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispose, getDescription, getFormatter, getLabel, getPolarity, getUnits, getValuef, reset, setComponent, setValueget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter, getParent, getPathpublic final List<LXCompoundModulation> modulations
public CompoundParameter(String label)
label - Label for parameterpublic CompoundParameter(String label, double value)
label - Labelvalue - valuepublic CompoundParameter(String label, double value, double max)
label - Labelvalue - valuemax - Maximum valuepublic CompoundParameter(String label, double value, double v0, double v1)
label - Labelvalue - Initial valuev0 - Start of rangev1 - End of rangepublic CompoundParameter(LXListenableParameter underlying, double v0, double v1)
underlying - The underlying parameterv0 - Beginning of rangev1 - End of rangepublic CompoundParameter setPolarity(LXParameter.Polarity polarity)
setPolarity in class BoundedParameterpublic CompoundParameter setExponent(double exponent)
setExponent in class BoundedParameterpublic CompoundParameter setDescription(String description)
setDescription in class BoundedParameterpublic CompoundParameter addModulation(LXCompoundModulation modulation)
modulation - Modulation mapping to add to this parameterpublic CompoundParameter removeModulation(LXCompoundModulation modulation)
modulation - Modulation mapping to removepublic double getBaseValue()
public float getBaseValuef()
public double getBaseNormalized()
public float getBaseNormalizedf()
public double getNormalized()
BoundedParametergetNormalized in interface LXNormalizedParametergetNormalized in class BoundedParameterpublic double getValue()
LXParametergetValue in interface LXParametergetValue in class LXListenableParameterLX library by Mark C. Slee. © 2012-2020