fmsynth_set_parameter method

void fmsynth_set_parameter(
  1. Pointer<fmsynth> fm,
  2. int parameter,
  3. int operator_index,
  4. double value,
)

\brief Set a parameter specific to an operator.

If either parameter or operator_index is out of bounds, this functions is a no-op. Updated parameters will not generally be reflected in audio output until a new voice has started.

@param fm Handle to an FM synth instance. @param parameter Which parameter to modify. See \ref fmsynth_parameter for which parameters can be used. @param operator_index Which operator to modify. Valid range is 0 to \ref FMSYNTH_OPERATORS - 1. @param value A floating point value. The meaning is parameter-dependent.

Implementation

void fmsynth_set_parameter(
  ffi.Pointer<fmsynth> fm,
  int parameter,
  int operator_index,
  double value,
) {
  return _fmsynth_set_parameter(
    fm,
    parameter,
    operator_index,
    value,
  );
}