|
VST 3 SDK VST 3.7
SDK for developing VST plug-in
|
Collection of parameters. More...
#include <vstparameters.h>
Public Member Functions | |
| ParameterContainer () | |
| ~ParameterContainer () | |
| void | init (int32 initialSize=10, int32 resizeDelta=100) |
| Init param array. More... | |
| Parameter * | addParameter (const ParameterInfo &info) |
| Creates and adds a new parameter from a ParameterInfo. More... | |
| Parameter * | addParameter (const TChar *title, const TChar *units=nullptr, int32 stepCount=0, ParamValue defaultValueNormalized=0., int32 flags=ParameterInfo::kCanAutomate, int32 tag=-1, UnitID unitID=kRootUnitId, const TChar *shortTitle=nullptr) |
| Creates and adds a new parameter with given properties. More... | |
| Parameter * | addParameter (Parameter *p) |
| Adds a given parameter. More... | |
| int32 | getParameterCount () const |
| Returns the count of parameters. More... | |
| Parameter * | getParameterByIndex (int32 index) const |
| Gets parameter by index. More... | |
| void | removeAll () |
| Removes all parameters. More... | |
| Parameter * | getParameter (ParamID tag) const |
| Gets parameter by ID. More... | |
| bool | removeParameter (ParamID tag) |
| Remove a specific parameter by ID. More... | |
Protected Types | |
| using | ParameterPtrVector = std::vector< IPtr< Parameter > > |
| using | IndexMap = std::map< ParamID, ParameterPtrVector::size_type > |
Protected Attributes | |
| ParameterPtrVector * | params {nullptr} |
| IndexMap | id2index |
Collection of parameters.
|
protected |
| ~ParameterContainer | ( | ) |
| Parameter * addParameter | ( | const ParameterInfo & | info | ) |
Creates and adds a new parameter from a ParameterInfo.
| Parameter * addParameter | ( | const TChar * | title, |
| const TChar * | units = nullptr, |
||
| int32 | stepCount = 0, |
||
| ParamValue | defaultValueNormalized = 0., |
||
| int32 | flags = ParameterInfo::kCanAutomate, |
||
| int32 | tag = -1, |
||
| UnitID | unitID = kRootUnitId, |
||
| const TChar * | shortTitle = nullptr |
||
| ) |
Creates and adds a new parameter with given properties.
|
inline |
Returns the count of parameters.
|
inline |
Removes all parameters.
| bool removeParameter | ( | ParamID | tag | ) |
Remove a specific parameter by ID.
|
protected |
|
protected |