Jamba C++ API  5.1.1
IParamConverter< T > Class Template Referenceabstract

A vst parameter is represented by a ParamValue type which is a double in the range [0,1]. More...

#include <ParamConverters.h>

Inherited by DiscreteTypeParamConverter< T, Compare >.

Public Types

using ParamType = T
 

Public Member Functions

virtual ParamType denormalize (ParamValue iNormalizedValue) const =0
 
virtual int32 getStepCount () const
 
virtual ParamValue normalize (ParamType const &iValue) const =0
 
virtual void toString (ParamType const &iValue, String128 iString, int32 iPrecision) const
 
virtual std::string toString (ParamType const &iValue, int32 iPrecision) const
 

Detailed Description

template<typename T>
class pongasoft::VST::IParamConverter< T >

A vst parameter is represented by a ParamValue type which is a double in the range [0,1].

This interface represents a converter which knows how to convert from this normalized value to any other kind of value (T)

Template Parameters
Tthe actual type that the vst parameter represents

Member Typedef Documentation

◆ ParamType

using ParamType = T

Member Function Documentation

◆ denormalize()

◆ getStepCount()

◆ normalize()

◆ toString() [1/2]

◆ toString() [2/2]

virtual std::string toString ( ParamType const &  iValue,
int32  iPrecision 
) const
inlinevirtual

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