61 ParamValue defaultValueNormalized = 0., int32 stepCount = 0,
63 const TChar* shortTitle =
nullptr);
117 ParamValue defaultValuePlain = 0., int32 stepCount = 0,
119 const TChar* shortTitle =
nullptr);
160 UnitID unitID = kRootUnitId,
const TChar* shortTitle=
nullptr);
197 void init (int32 initialSize = 10, int32 resizeDelta = 100);
206 UnitID unitID = kRootUnitId,
const TChar* shortTitle =
nullptr);
234 ParameterPtrVector* params {
nullptr};
Implements FUnknown and IDependent.
Collection of parameters.
int32 getParameterCount() const
Returns the count of parameters.
void init(int32 initialSize=10, int32 resizeDelta=100)
Init param array.
bool removeParameter(ParamID tag)
Remove a specific parameter by ID.
Parameter * getParameter(ParamID tag) const
Gets parameter by ID.
Parameter * addParameter(const ParameterInfo &info)
Creates and adds a new parameter from a ParameterInfo.
void removeAll()
Removes all parameters.
Parameter * getParameterByIndex(int32 index) const
Gets parameter by index.
Description of a Parameter.
virtual ParamValue toNormalized(ParamValue plainValue) const
Converts a plain value to a normalized value (e.g.
virtual bool setNormalized(ParamValue v)
Sets its normalized value [0.0, 1.0].
virtual ParameterInfo & getInfo()
Returns its writable info.
virtual ParamValue toPlain(ParamValue valueNormalized) const
Converts a normalized value to plain value (e.g.
virtual bool fromString(const TChar *string, ParamValue &valueNormalized) const
Converts a string to a normalized value.
ParamValue getNormalized() const
Gets its normalized value [0.0, 1.0].
virtual void toString(ParamValue valueNormalized, String128 string) const
Converts a normalized value to a string.
virtual const ParameterInfo & getInfo() const
Returns its read only info.
virtual void setPrecision(int32 val)
Sets the precision for string representation of float value (for example 4.34 with 2 as precision).
virtual int32 getPrecision() const
Gets the current precision (used for string representation of float).
virtual UnitID getUnitID()
Gets its associated UnitId.
virtual void setUnitID(UnitID id)
Sets its associated UnitId.
Description of a RangeParameter.
ParamValue toPlain(ParamValue _valueNormalized) const SMTG_OVERRIDE
Converts a normalized value to plain value (e.g.
virtual ParamValue getMin() const
Gets the minimum plain value, same as toPlain (0).
void toString(ParamValue _valueNormalized, String128 string) const SMTG_OVERRIDE
Converts a normalized value to a string.
ParamValue toNormalized(ParamValue plainValue) const SMTG_OVERRIDE
Converts a plain value to a normalized value (e.g.
virtual ParamValue getMax() const
Gets the maximum plain value, same as toPlain (1).
virtual void setMin(ParamValue value)
Sets the minimum plain value.
bool fromString(const TChar *string, ParamValue &_valueNormalized) const SMTG_OVERRIDE
Converts a string to a normalized value.
virtual void setMax(ParamValue value)
Sets the maximum plain value.
Description of a StringListParameter.
void toString(ParamValue _valueNormalized, String128 string) const SMTG_OVERRIDE
Converts a normalized value to a string.
virtual bool replaceString(int32 index, const String128 string)
Replaces the string at index.
ParamValue toNormalized(ParamValue plainValue) const SMTG_OVERRIDE
Converts a plain value to a normalized value (e.g.
virtual void appendString(const String128 string)
Appends a string and increases the stepCount.
bool fromString(const TChar *string, ParamValue &_valueNormalized) const SMTG_OVERRIDE
Converts a string to a normalized value.
ParamValue toPlain(ParamValue _valueNormalized) const SMTG_OVERRIDE
Converts a normalized value to plain value (e.g.
Basic Object implementing FUnknown.
uint32 ParamID
parameter identifier
TChar String128[128]
128 character UTF-16 string
char16 TChar
UTF-16 character.
double ParamValue
parameter value type
int32 UnitID
unit identifier
Controller Parameter Info.
UnitID unitId
id of unit this parameter belongs to (see vst3Units)
@ kIsList
parameter should be displayed as list in generic editor or automation editing [SDK 3....
@ kCanAutomate
parameter can be automated