Jamba C++ API  5.1.1
ParamConverters.h File Reference
#include <pongasoft/Utils/Misc.h>
#include <pongasoft/VST/Types.h>
#include <pongasoft/VST/VstUtils/Utils.h>
#include <pluginterfaces/vst/vsttypes.h>
#include <pluginterfaces/vst/ivstparameterchanges.h>
#include <pluginterfaces/base/ustring.h>
#include <base/source/fstring.h>
#include <pluginterfaces/base/ftypes.h>
#include <cmath>
#include <algorithm>
#include <memory>
#include <string>
#include <array>
#include <vector>
#include <map>
#include <type_traits>
#include <pongasoft/Utils/Constants.h>

Go to the source code of this file.

Classes

class  BooleanParamConverter
 Manages the very common case when a param represents a boolean value. More...
 
class  DiscreteTypeParamConverter< T, Compare >
 This converters maps a list of values of type T to discrete values. More...
 
class  DiscreteValueParamConverter< StepCount, IntType >
 A converter to deal with a discrete value which has StepCount steps. More...
 
class  EnumParamConverter< Enum, MaxValue >
 A converter to deal with an enum (assumes that the enum is contiguous, starts at 0 and that MaxValue is the latest value in the enum). More...
 
class  IParamConverter< T >
 A vst parameter is represented by a ParamValue type which is a double in the range [0,1]. More...
 
class  PercentParamConverter
 A trivial percent converter. More...
 
class  RawParamConverter
 This parameter is just a no-op wrapper to the ParamValue to adapt it to the use of the ParamConverter concept. More...
 

Namespaces

 pongasoft
 
 pongasoft::VST
 

Typedefs

using Percent = double
 Percent type represented by a double. More...
 

Functions

static int32 computeNextDiscreteValue (int32 iValue, int32 iStepCount, int32 iIncrement, bool iWrap)
 Implements a standard behavior for what it means to increment (resp. More...
 
static ParamValue convertDiscreteValueToNormalizedValue (int32 iStepCount, int32 iDiscreteValue)
 Implements the algorithm described in the VST documentation on how to interpret a discrete value into a normalized value. More...
 
static int32 convertNormalizedValueToDiscreteValue (int32 iStepCount, ParamValue iNormalizedValue)
 Implements the algorithm described in the VST documentation on how to interpret a normalized value as a discrete value. More...