FMOD_DSP_PARAMETER_FLOAT_MAPPING_PIECEWISE_LINEAR

FMOD Studio API

Firelight Technologies FMOD Studio API

FMOD_DSP_PARAMETER_FLOAT_MAPPING_PIECEWISE_LINEAR

Structure to define a piecewise linear mapping.

C/C++ Syntax

typedef struct {
  int numpoints;
  float *pointparamvalues;
  float *pointpositions;
} FMOD_DSP_PARAMETER_FLOAT_MAPPING_PIECEWISE_LINEAR;

JavaScript Syntax

struct FMOD_DSP_PARAMETER_FLOAT_MAPPING_PIECEWISE_LINEAR
{
  numpoints,
};

Members

numpoints

[w] The number of pairs in the piecewise mapping (at least 2).

pointparamvalues

[w] The values in the parameter's units for each point

pointpositions

[w] The positions along the control's scale (e.g. dial angle) corresponding to each parameter value. The range of this scale is arbitrary and all positions will be relative to the minimum and maximum values (e.g. [0,1,3] is equivalent to [1,2,4] and [2,4,8]). If this array is zero, pointparamvalues will be distributed with equal spacing.

Remarks

Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value.
Members marked with [w] mean the variable can be written to. The user can set the value.

JavaScript only :

Not all fields are currently supported or may not work as expected at this time. To initialize an new instance in javascript use "FMOD.DSP_PARAMETER_FLOAT_MAPPING_PIECEWISE_LINEAR()", no 'new' keyword is required.

See Also




Version 1.10.03 Built on Feb 1, 2018