Jamba  3.0.2
pongasoft::VST::RT::RTRawVstParameter Class Reference

#include <RTParameter.h>

Inherited by pongasoft::VST::RT::RTVstParameter< T >.

Public Member Functions

tresult addToOutput (ProcessData &oData)
 
ParamValue const & getNormalizedValue () const
 
RawVstParamDef const * getParamDef () const
 
ParamID getParamID () const
 
ParamValue const & getPreviousNormalizedValue () const
 
bool hasChanged () const
 
virtual bool resetPreviousValue ()
 
 RTRawVstParameter (std::shared_ptr< RawVstParamDef > iParamDef)
 
virtual bool updateNormalizedValue (ParamValue iNormalizedValue)
 

Protected Attributes

ParamValue fNormalizedValue
 
std::shared_ptr< RawVstParamDeffParamDef
 
ParamValue fPreviousNormalizedValue
 

Detailed Description

Base class which deals with the "raw"/untyped parameter and keep the normalized value (ParamValue in the range [0.0,1.0]). Also keeps the "previous" value which is the value the param had in the previous frame/call to process.

Constructor & Destructor Documentation

◆ RTRawVstParameter()

pongasoft::VST::RT::RTRawVstParameter::RTRawVstParameter ( std::shared_ptr< RawVstParamDef iParamDef)
inlineexplicit

Member Function Documentation

◆ addToOutput()

tresult pongasoft::VST::RT::RTRawVstParameter::addToOutput ( ProcessData &  oData)

Add the current normalized value as an output parameter changes

◆ getNormalizedValue()

ParamValue const& pongasoft::VST::RT::RTRawVstParameter::getNormalizedValue ( ) const
inline

◆ getParamDef()

RawVstParamDef const* pongasoft::VST::RT::RTRawVstParameter::getParamDef ( ) const
inline

◆ getParamID()

ParamID pongasoft::VST::RT::RTRawVstParameter::getParamID ( ) const
inline

◆ getPreviousNormalizedValue()

ParamValue const& pongasoft::VST::RT::RTRawVstParameter::getPreviousNormalizedValue ( ) const
inline

◆ hasChanged()

bool pongasoft::VST::RT::RTRawVstParameter::hasChanged ( ) const
inline
Returns
true if the parameter has changed within the frame (previous and current are different)

◆ resetPreviousValue()

bool pongasoft::VST::RT::RTRawVstParameter::resetPreviousValue ( )
virtual

Called at the end of the frame so that previous value is set to current value for the next frame

Returns
true if previous value was different than current value

Reimplemented in pongasoft::VST::RT::RTVstParameter< T >.

◆ updateNormalizedValue()

bool pongasoft::VST::RT::RTRawVstParameter::updateNormalizedValue ( ParamValue  iNormalizedValue)
virtual

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)

Returns
true if the value was actually updated, false if it is the same

Reimplemented in pongasoft::VST::RT::RTVstParameter< T >.

Member Data Documentation

◆ fNormalizedValue

ParamValue pongasoft::VST::RT::RTRawVstParameter::fNormalizedValue
protected

◆ fParamDef

std::shared_ptr<RawVstParamDef> pongasoft::VST::RT::RTRawVstParameter::fParamDef
protected

◆ fPreviousNormalizedValue

ParamValue pongasoft::VST::RT::RTRawVstParameter::fPreviousNormalizedValue
protected

The documentation for this class was generated from the following files: