fmsynth_note_on method

int fmsynth_note_on(
  1. Pointer<fmsynth> fm,
  2. int note,
  3. int velocity
)

\addtogroup libfmsynthControl MIDI control interface / /* @{ / /* \brief Trigger a note on the FM synth.

@param fm Handle to an FM synth instance. @param note Which note to press. Note is parsed using MIDI rules, i.e. note = 69 is A4. Valid range is 0, 127. @param velocity Note velocity. Velocity is parsed using MIDI rules. valie range is 0, 127.

@returns \ref FMSYNTH_STATUS_OK or \ref FMSYNTH_STATUS_BUSY if polyphony is exhausted.

Implementation

int fmsynth_note_on(
  ffi.Pointer<fmsynth> fm,
  int note,
  int velocity,
) {
  return _fmsynth_note_on(
    fm,
    note,
    velocity,
  );
}