Jamba C++ API
5.1.1
|
The typed version. More...
#include <RTParameter.h>
Inherits RTRawVstParameter.
Public Types | |
using | ParamType = T |
Public Member Functions | |
ParamType | denormalize (ParamValue iNormalizedValue) const |
VstParamDef< T > const * | getParamDefT () const |
ParamType const & | getPreviousValue () const |
ParamType const & | getValue () const |
ParamValue | normalize (ParamType const &iValue) const |
RTVstParameter (VstParam< T > iParamDef) | |
void | update (ParamType const &iNewValue) |
This method is typically called during the processing method when the plugin needs to update the value. More... | |
![]() | |
tresult | addToOutput (ProcessData &oData) |
Add the current normalized value as an output parameter changes. More... | |
ParamValue const & | getNormalizedValue () const |
RawVstParamDef const * | getParamDef () const |
ParamID | getParamID () const |
ParamValue const & | getPreviousNormalizedValue () const |
bool | hasChanged () const |
RTRawVstParameter (std::shared_ptr< RawVstParamDef > iParamDef) | |
Protected Member Functions | |
bool | resetPreviousValue () override |
Called at the end of the frame so that previous value is set to current value for the next frame. More... | |
bool | updateNormalizedValue (ParamValue iNormalizedValue) override |
Update the parameter with a new normalized value. More... | |
Protected Attributes | |
ParamType | fPreviousValue |
ParamType | fValue |
![]() | |
ParamValue | fNormalizedValue |
std::shared_ptr< RawVstParamDef > | fParamDef |
ParamValue | fPreviousNormalizedValue |
The typed version.
Maintains the denormalized (aka "typed") version of the value and previous value.
T | the underlying type of the param |
using ParamType = T |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overrideprotectedvirtual |
Called at the end of the frame so that previous value is set to current value for the next frame.
Reimplemented from RTRawVstParameter.
void update | ( | ParamType const & | iNewValue | ) |
This method is typically called during the processing method when the plugin needs to update the value.
In general the change needs to be propagated to the VST sdk (using addToOutput).
|
overrideprotectedvirtual |
Update the parameter with a new normalized value.
This is typically called after the VST parameter managed by the VST sdk changes (for example, moving a knob or loading a previously saved plugin)
Reimplemented from RTRawVstParameter.
|
protected |
|
protected |