PowFloatParameter

Float parameter following a x^N type mapping (eg: something that doesn't fit in the other categories)

Constructors

this
this(int index, string name, string label, double min, double max, double defaultValue, double shape)
Undocumented in source.

Members

Functions

fromNormalized
double fromNormalized(double normalizedValue)
Undocumented in source. Be warned that the author may not have intended to support it.
toNormalized
double toNormalized(double value)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From FloatParameter

value
double value()

Gets current value.

valueAtomic
double valueAtomic()

Same as value but doesn't use locking, and doesn't use ordering. Which make it a better fit for the audio thread.

minValue
double minValue()
Undocumented in source. Be warned that the author may not have intended to support it.
maxValue
double maxValue()
Undocumented in source. Be warned that the author may not have intended to support it.
defaultValue
double defaultValue()
Undocumented in source. Be warned that the author may not have intended to support it.
setFromGUINormalized
void setFromGUINormalized(double normValue)

Sets the value of the parameter from UI, using a normalized value. Note: If normValue is not inside [0.0 .. 1.0], then it is clamped. This is not an error.

setDecimalPrecision
void setDecimalPrecision(int digits)

Sets the number of decimal digits after the dot to be displayed.

withDecimalPrecision
FloatParameter withDecimalPrecision(int digits)

Helper for setDecimalPrecision that returns this, help when in parameter creation.

setFromGUI
void setFromGUI(double value)

Sets the value of the parameter from UI, using a normalized value. Note: If value is not inside [min .. max], then it is clamped. This is not an error.

setNormalized
void setNormalized(double hostValue)
Undocumented in source. Be warned that the author may not have intended to support it.
getNormalized
double getNormalized()
Undocumented in source. Be warned that the author may not have intended to support it.
getNormalizedDefault
double getNormalizedDefault()
Undocumented in source. Be warned that the author may not have intended to support it.
toStringN
void toStringN(char* buffer, size_t numBytes)
Undocumented in source. Be warned that the author may not have intended to support it.
stringFromNormalizedValue
void stringFromNormalizedValue(double normalizedValue, char* buffer, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
normalizedValueFromString
bool normalizedValueFromString(const(char)[] valueString, double result)
Undocumented in source. Be warned that the author may not have intended to support it.
isDiscrete
bool isDiscrete()
Undocumented in source. Be warned that the author may not have intended to support it.
toNormalized
double toNormalized(double value)

Override it to specify mapping from parameter values to normalized [0..1]

fromNormalized
double fromNormalized(double value)

Override it to specify mapping from normalized [0..1] to parameter value

Meta