IntegerParameter

An integer parameter

Members

Functions

defaultValue
int defaultValue()
maxValue
int maxValue()
minValue
int minValue()
numValues
int numValues()
value
int value()

Gets the current parameter value.

valueAtomic
int valueAtomic()

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

Inherited Members

From Parameter

name
string name()
label
string label()
index
int index()
setFromHost
void setFromHost(double hostValue)

From a normalized double [0..1], set the parameter value.

getForHost
double getForHost()
addListener
void addListener(IParameterListener listener)

Adds a parameter listener.

removeListener
void removeListener(IParameterListener listener)

Removes a parameter listener.

beginParamEdit
void beginParamEdit()

Warns the host that a parameter will be edited. Should only ever be called from the UI thread.

endParamEdit
void endParamEdit()

Warns the host that a parameter has finished being edited. Should only ever be called from the UI thread.

getNormalized
double getNormalized()
getNormalizedDefault
double getNormalizedDefault()
stringFromNormalizedValue
void stringFromNormalizedValue(double normalizedValue, char* buffer, size_t len)
normalizedValueFromString
bool normalizedValueFromString(const(char)[] valueString, double result)
isDiscrete
bool isDiscrete()
setNormalized
void setNormalized(double hostValue)

From a normalized double, set the parameter value. No guarantee at all that getNormalized will return the same, because this value is rounded to fit.

toStringN
void toStringN(char* buffer, size_t numBytes)

Display parameter (without label). This always adds a terminal zero within numBytes.

setClientReference
void setClientReference(Client client)

Parameters are owned by a client, this is used to make them refer back to it.

Meta