libfmsynth class

Constructors

libfmsynth(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
libfmsynth.fromLookup(Pointer<T> lookup<T extends NativeType>(String symbolName))
The symbols are looked up with lookup.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fmsynth_convert_from_normalized_global_parameter(Pointer<fmsynth> fm, int parameter, double value) double
fmsynth_convert_from_normalized_parameter(Pointer<fmsynth> fm, int parameter, double value) double
fmsynth_convert_to_normalized_global_parameter(Pointer<fmsynth> fm, int parameter, double value) double
fmsynth_convert_to_normalized_parameter(Pointer<fmsynth> fm, int parameter, double value) double
fmsynth_free(Pointer<fmsynth> fm) → void
\brief Free an FM synth instance.
fmsynth_get_global_parameter(Pointer<fmsynth> fm, int parameter) double
fmsynth_get_parameter(Pointer<fmsynth> fm, int parameter, int operator_index) double
fmsynth_get_version() int
\brief Returns current version of libfmsynth.
fmsynth_new(double sample_rate, int max_voices) Pointer<fmsynth>
\addtogroup libfmsynthLifetime Lifetime / /* @{ / /* \brief Allocate a new instance of an FM synth.
fmsynth_note_off(Pointer<fmsynth> fm, int note) → void
\brief Release a note on the FM synth.
fmsynth_note_on(Pointer<fmsynth> fm, int note, int velocity) int
\addtogroup libfmsynthControl MIDI control interface / /* @{ / /* \brief Trigger a note on the FM synth.
fmsynth_parse_midi(Pointer<fmsynth> fm, Pointer<Uint8> midi_data) int
\brief Parse single MIDI message.
fmsynth_preset_load(Pointer<fmsynth> fm, Pointer<fmsynth_preset_metadata> metadata, Pointer<Void> buffer, int size) int
\brief Load preset from memory.
fmsynth_preset_save(Pointer<fmsynth> fm, Pointer<fmsynth_preset_metadata> metadata, Pointer<Void> buffer, int size) int
\brief Saves current preset to memory.
fmsynth_preset_size() int
\brief Size in bytes required to hold a preset in memory.
fmsynth_release_all(Pointer<fmsynth> fm) → void
\brief Forcibly release all notes.
fmsynth_render(Pointer<fmsynth> fm, Pointer<Float> left, Pointer<Float> right, int frames) int
\addtogroup libfmsynthRender Audio rendering / /* @{ / /* \brief Render audio to buffer
fmsynth_reset(Pointer<fmsynth> fm) → void
\brief Reset FM synth state to initial values.
fmsynth_set_global_parameter(Pointer<fmsynth> fm, int parameter, double value) → void
\brief Set a parameter global to the FM synth.
fmsynth_set_mod_wheel(Pointer<fmsynth> fm, int wheel) → void
\brief Set modulation wheel state.
fmsynth_set_parameter(Pointer<fmsynth> fm, int parameter, int operator_index, double value) → void
\brief Set a parameter specific to an operator.
fmsynth_set_pitch_bend(Pointer<fmsynth> fm, int value) → void
\brief Set pitch bend state.
fmsynth_set_sustain(Pointer<fmsynth> fm, bool enable) → void
\brief Set sustain state for FM synth.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited