iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
IParam::ShapeLinear Struct Reference

Linear parameter shaping. More...

#include <IPlugParameter.h>

Inheritance diagram for IParam::ShapeLinear:
[legend]

Public Member Functions

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 ShapeClone () const =0
 
virtual void Init (const IParam &param)
 Initializes the shape instance. More...
 
virtual EDisplayType GetDisplayType () const =0
 
virtual double NormalizedToValue (double value, const IParam &param) const =0
 Returns the real value from a normalized input, based on an IParam's settings. More...
 
virtual double ValueToNormalized (double value, const IParam &param) const =0
 Returns the normalized value from a real value, based on an IParam's settings. More...
 

Public Attributes

double mShape
 

Detailed Description

Linear parameter shaping.

Definition at line 94 of file IPlugParameter.h.

Member Function Documentation

◆ Clone()

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

Implements IParam::Shape.

Definition at line 96 of file IPlugParameter.h.

◆ GetDisplayType()

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

Implements IParam::Shape.

Definition at line 97 of file IPlugParameter.h.

◆ NormalizedToValue()

double IParam::ShapeLinear::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 26 of file IPlugParameter.cpp.

◆ ValueToNormalized()

double IParam::ShapeLinear::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 31 of file IPlugParameter.cpp.

Member Data Documentation

◆ mShape

double IParam::ShapeLinear::mShape

Definition at line 101 of file IPlugParameter.h.


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