18 #include <pluginterfaces/vst/ivstaudioprocessor.h> 20 #ifndef __PONGASOFT_VST_RT_PARAMETER_H__ 21 #define __PONGASOFT_VST_RT_PARAMETER_H__ 24 #include <pongasoft/logging/logging.h> 149 fValue = denormalize(iNormalizedValue);
164 fPreviousValue = fValue;
178 fNormalizedValue = normalize(fValue);
212 inline T
const &
value()
const {
return fPtr->getValue(); }
287 inline void update(ParamValue
const &iNewValue, ProcessData &oData)
317 #endif // __PONGASOFT_VST_RT_PARAMETER_H__ ParamType denormalize(ParamValue iNormalizedValue) const
Definition: RTParameter.h:206
Definition: RTParameter.h:191
RTRawVstParam(RTRawVstParameter *iPtr)
Definition: RTParameter.h:264
std::shared_ptr< VstParamDef< T > > VstParam
Definition: ParamDef.h:358
RTRawVstParameter(std::shared_ptr< RawVstParamDef > iParamDef)
Definition: RTParameter.h:39
tresult addToOutput(ProcessData &oData)
Definition: RTParameter.h:301
RawVstParamDef const * getParamDef() const
Definition: RTParameter.h:49
bool hasChanged() const
Definition: RTParameter.h:296
bool updateNormalizedValue(ParamValue iNormalizedValue) override
Definition: RTParameter.h:145
ParamID getParamID() const
Definition: RTParameter.h:268
VstParamDef< T > const * getParamDefT() const
Definition: RTParameter.h:106
ParamType fPreviousValue
Definition: RTParameter.h:138
RTVstParam(RTVstParameter< T > *iPtr)
Definition: RTParameter.h:196
T ParamType
Definition: RTParameter.h:95
bool hasChanged() const
Definition: RTParameter.h:73
ParamType const & getValue() const
Definition: RTParameter.h:124
ParamID getParamID() const
Definition: RTParameter.h:200
virtual bool updateNormalizedValue(ParamValue iNormalizedValue)
Definition: RTParameter.cpp:49
tresult addToOutput(ProcessData &oData)
Definition: RTParameter.cpp:29
RTVstParameter< T > * fPtr
Definition: RTParameter.h:251
void update(ParamType const &iNewValue)
Definition: RTParameter.h:175
ParamValue const & getValue() const
Definition: RTParameter.h:271
ParamType const & previous() const
Definition: RTParameter.h:248
T ParamType
Definition: RTParameter.h:193
ParamType fValue
Definition: RTParameter.h:137
ParamValue const & previous() const
Definition: RTParameter.h:307
ParamValue normalize(ParamType const &iValue) const
Definition: RTParameter.h:203
void update(ParamValue const &iNewValue)
Definition: RTParameter.h:281
tresult addToOutput(ProcessData &oData)
Definition: RTParameter.h:239
ParamType denormalize(ParamValue iNormalizedValue) const
Definition: RTParameter.h:115
ParamType const * operator->() const
Definition: RTParameter.h:245
ParamValue normalize(ParamType const &iValue) const
Definition: RTParameter.h:112
bool resetPreviousValue() override
Definition: RTParameter.h:160
std::shared_ptr< RawVstParamDef > fParamDef
Definition: RTParameter.h:82
T const & value() const
Definition: RTParameter.h:212
void update(ParamType const &iNewValue, ProcessData &oData)
Definition: RTParameter.h:225
ParamValue fPreviousNormalizedValue
Definition: RTParameter.h:84
ParamValue const & getNormalizedValue() const
Definition: RTParameter.h:60
bool hasChanged() const
Definition: RTParameter.h:234
ParamValue fNormalizedValue
Definition: RTParameter.h:83
Definition: ParamDef.h:72
Definition: RTParameter.h:261
ParamValue const & value() const
Definition: RTParameter.h:274
void update(ParamType const &iNewValue)
Definition: RTParameter.h:219
ParamID getParamID() const
Definition: RTParameter.h:46
Definition: RTParameter.h:35
virtual bool resetPreviousValue()
Definition: RTParameter.cpp:65
Definition: RTParameter.h:92
RTVstParameter(VstParam< T > iParamDef)
Definition: RTParameter.h:98
Definition: ParamDef.h:129
void update(ParamValue const &iNewValue, ProcessData &oData)
Definition: RTParameter.h:287
T const & getValue() const
Definition: RTParameter.h:209
ParamValue const & getPreviousNormalizedValue() const
Definition: RTParameter.h:63
RTRawVstParameter * fPtr
Definition: RTParameter.h:310
ParamType const & getPreviousValue() const
Definition: RTParameter.h:127