Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
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 std::string toString (ParamType const &iValue, int32 iPrecision) const
virtual void toString (ParamType const &iValue, String128 iString, 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

template<typename T>
using ParamType = T

Member Function Documentation

◆ denormalize()

◆ getStepCount()

◆ normalize()

◆ toString() [1/2]

template<typename T>
virtual std::string toString ( ParamType const & iValue,
int32 iPrecision ) const
inlinevirtual

◆ toString() [2/2]

template<typename T>
virtual void toString ( ParamType const & iValue,
String128 iString,
int32 iPrecision ) const
inlinevirtual

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