Package heronarts.lx.parameter
Interface LXNormalizedParameter
- All Superinterfaces:
LXParameter
,LXPath
- All Known Subinterfaces:
LXCompoundModulation.Target
- All Known Implementing Classes:
AHDSREnvelope
,BandGate
,BooleanParameter
,BoundedFunctionalParameter
,BoundedParameter
,CompoundDiscreteParameter
,CompoundEnumParameter
,CompoundObjectParameter
,CompoundParameter
,Damper
,DecibelMeter
,DiscreteColorParameter
,DiscreteParameter
,DmxModulator
,EnumParameter
,FunctionalModulator
,GraphicMeter
,LinearEnvelope
,LXAudioEngine.Meter
,LXListenableNormalizedParameter
,LXPalette.IndexSelector
,LXRangeModulator
,LXVariablePeriodModulator
,LXViewEngine.Selector
,LXViewEngine.SelectorNormal
,LXViewEngine.SelectorPriority
,MultiModeEnvelope
,MultiStageEnvelope
,NoiseModulator
,NormalizedParameter
,ObjectParameter
,OperatorModulator
,QuadraticEnvelope
,Randomizer
,SawLFO
,Scaler
,SinLFO
,Smoother
,SoundObject
,SoundObject.Selector
,Spring
,SquareLFO
,Timer
,TriangleLFO
,TriggerParameter
,VariableLFO
A parameter that supports values in a normalized form, from 0 to 1. This only
makes sense for parameters with fixed, finite ranges. The calls to
setNormalized() and getNormalized() operate in this space, while getValue()
respects the actual given value range.
-
Nested Class Summary
Nested classes/interfaces inherited from interface heronarts.lx.parameter.LXParameter
LXParameter.Collection, LXParameter.Formatter, LXParameter.Monitor, LXParameter.MultiMonitor, LXParameter.Polarity, LXParameter.Units
-
Field Summary
Fields inherited from interface heronarts.lx.LXPath
ROOT, ROOT_PREFIX, ROOT_SLASH
-
Method Summary
Modifier and TypeMethodDescriptiondefault double
Get the base parameter value, for modulated parameters this may differ from getValue()default float
Get the base parameter value, for modulated parameters this may differ from getValue()default double
Gets the exponent used for scaling this parameter across its normalized range.double
Gets the value of the parameter in a normalized space from 0 to 1default float
Gets the value of the parameter in a normalized space as a floatdefault LXNormalizedParameter.OscMode
default double
getValueFromNormalized
(double normalized) Get the equivalent raw parameter value from a normalized valuedefault boolean
Whether this parameter should wrap when incremented or decremented at the extent of its range.setNormalized
(double value) Sets the value or the parameter in normalized space from 0 to 1Methods inherited from interface heronarts.lx.parameter.LXParameter
dispose, getBaseValue, getBaseValuef, getFormatter, getLabel, getParentParameter, getPolarity, getUnits, getValue, getValuef, isMappable, reset, setComponent, setFormatter, setMappable, setValue
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getDescription, getParent, getPath, isDescendant
-
Method Details
-
setNormalized
Sets the value or the parameter in normalized space from 0 to 1- Parameters:
value
- The normalized value, from 0 to 1- Returns:
- this, for method chaining
-
getNormalized
double getNormalized()Gets the value of the parameter in a normalized space from 0 to 1- Returns:
- Value of parameter, normalized to range from 0 to 1
-
getNormalizedf
default float getNormalizedf()Gets the value of the parameter in a normalized space as a float- Returns:
- Normalized value of parameter, in range from 0 to 1
-
getBaseNormalized
default double getBaseNormalized()Get the base parameter value, for modulated parameters this may differ from getValue()- Returns:
- Base normalized parameter value
-
getBaseNormalizedf
default float getBaseNormalizedf()Get the base parameter value, for modulated parameters this may differ from getValue()- Returns:
- Base normalized parameter value
-
getValueFromNormalized
default double getValueFromNormalized(double normalized) Get the equivalent raw parameter value from a normalized value- Parameters:
normalized
- Normalized value- Returns:
- The equivalent raw value
-
getExponent
default double getExponent()Gets the exponent used for scaling this parameter across its normalized range. Default is 1 which means linear scaling.- Returns:
- scaling exponent
-
isWrappable
default boolean isWrappable()Whether this parameter should wrap when incremented or decremented at the extent of its range.- Returns:
true
if wrappable, false if otherwise
-
getOscMode
-