Firelight Technologies FMOD Studio API

piecewiselinearmapping

Structure to define a mapping for a DSP unit's float parameter.

Structure

typedef struct {
  FMOD_DSP_PARAMETER_FLOAT_MAPPING_TYPE type;
  int numpoints;
  float* pointparamvalues;
  float* pointpositions;
} piecewiselinearmapping;

Members

type

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.

See Also




Version 1.03.06 Built on Apr 17, 2014