public class CompoundParameter extends BoundedParameter
BoundedParameter.Range
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units
Modifier and Type | Field and Description |
---|---|
List<LXCompoundModulation> |
modulations |
range
description
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, updateValue
getExponent, isMappable, setMappable
addListener, bang, dispose, getDescription, getFormatter, getLabel, getParent, getPath, getPolarity, getUnits, getValuef, incrementValue, removeListener, reset, reset, setComponent, setFormatter, setUnits, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getDescription, getFormatter, getLabel, getPolarity, getUnits, getValuef, reset, setComponent, setValue
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter, getParent, getPath
public 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 BoundedParameter
public CompoundParameter setExponent(double exponent)
setExponent
in class BoundedParameter
public CompoundParameter setDescription(String description)
setDescription
in class BoundedParameter
public 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()
BoundedParameter
getNormalized
in interface LXNormalizedParameter
getNormalized
in class BoundedParameter
public double getValue()
LXParameter
getValue
in interface LXParameter
getValue
in class LXListenableParameter
LX library by Mark C. Slee. © 2012-2020