iPlug2 - C++ Audio Plug-in Framework
Public Member Functions | Public Attributes | List of all members
IParam::ShapePowCurve Struct Reference

PowCurve parameter shaping. More...

#include <IPlugParameter.h>

Inheritance diagram for IParam::ShapePowCurve:
[legend]

Public Member Functions

 ShapePowCurve (double shape)
 
ShapeClone () const override
 
IParam::EDisplayType GetDisplayType () const override
 
double NormalizedToValue (double value, const IParam &param) const override
 Returns the real value from a normalized input, based on an IParam's settings. More...
 
double ValueToNormalized (double value, const IParam &param) const override
 Returns the normalized value from a real value, based on an IParam's settings. More...
 
- Public Member Functions inherited from IParam::Shape
virtual void Init (const IParam &param)
 Initializes the shape instance. More...
 

Public Attributes

double mShape
 

Detailed Description

PowCurve parameter shaping.

Definition at line 105 of file IPlugParameter.h.

Member Function Documentation

Shape* IParam::ShapePowCurve::Clone ( ) const
inlineoverridevirtual
Returns
A new instance of this Shape struct

Implements IParam::Shape.

Definition at line 108 of file IPlugParameter.h.

References IParam::Shape::GetDisplayType(), IParam::Shape::NormalizedToValue(), and IParam::Shape::ValueToNormalized().

IParam::EDisplayType IParam::ShapePowCurve::GetDisplayType ( ) const
overridevirtual
Returns
EDisplayType, used by AudioUnit plugins to determine the mapping of parameters

Implements IParam::Shape.

Definition at line 41 of file IPlugParameter.cpp.

double IParam::ShapePowCurve::NormalizedToValue ( double  value,
const IParam param 
) const
overridevirtual

Returns the real value from a normalized input, based on an IParam's settings.

Parameters
valueThe normalized value as a double to be converted
paramThe IParam to do the calculation against
Returns
double The real value

Implements IParam::Shape.

Definition at line 51 of file IPlugParameter.cpp.

References IParam::GetMax(), and IParam::GetMin().

double IParam::ShapePowCurve::ValueToNormalized ( double  value,
const IParam param 
) const
overridevirtual

Returns the normalized value from a real value, based on an IParam's settings.

Parameters
valueThe real value as a double to be converted
paramThe IParam to do the calculation against
Returns
double The normalized value

Implements IParam::Shape.

Definition at line 56 of file IPlugParameter.cpp.

References IParam::GetMax(), and IParam::GetMin().


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