Skip to content

Curve

A Curve that describes the variation of a value (on the Y-axis) according to another (on the X-axis).

Public Functions

Type Name
Curve ()
Creates an empty Curve .
AmReal32 Get (AmReal64 x) const
Get the curve value corresponding to the given X value.
void Initialize (const CurveDefinition * definition)
Initializes curve parts from the given definition.
void Initialize (const std::vector< CurvePart > & parts)
Initializes curve parts from the given vector.

Public Functions Documentation

Curve

Creates an empty Curve .

Amplitude::Curve::Curve () 
Get

Get the curve value corresponding to the given X value.

AmReal32 Amplitude::Curve::Get (
    AmReal64 x
) const

Parameters:

  • x The X value.

Returns:

The curve value.

Initialize[1/2]

Initializes curve parts from the given definition.

void Amplitude::Curve::Initialize (
    const CurveDefinition * definition
) 

Parameters:

  • definition The curve definition data.
Initialize[2/2]

Initializes curve parts from the given vector.

void Amplitude::Curve::Initialize (
    const std::vector< CurvePart > & parts
) 

Parameters:

  • parts The vector of curve parts.

The documentation for this class was generated from the following file: include/SparkyStudios/Audio/Amplitude/Math/Curve.h