Function
AgsAudioSF2SynthUtilmidi_locale_find_sample_near_midi_key
since: 3.4.0
Declaration [src]
AgsIpatchSample*
ags_sf2_synth_util_midi_locale_find_sample_near_midi_key (
AgsIpatch* ipatch,
gint bank,
gint program,
gint midi_key,
gchar** preset,
gchar** instrument,
gchar** sample
)
Parameters
ipatch
-
Type:
AgsIpatch
The
AgsIpatch
.The data is owned by the caller of the function. bank
-
Type:
gint
The bank.
program
-
Type:
gint
The program.
midi_key
-
Type:
gint
The MIDI key.
preset
-
Type:
gchar**
The preset.
The argument will be set by the function. The called function takes ownership of the data, and is responsible for freeing it. The value is a NUL terminated UTF-8 string. instrument
-
Type:
gchar**
The instrument.
The argument will be set by the function. The called function takes ownership of the data, and is responsible for freeing it. The value is a NUL terminated UTF-8 string. sample
-
Type:
gchar**
The sample.
The argument will be set by the function. The called function takes ownership of the data, and is responsible for freeing it. The value is a NUL terminated UTF-8 string.
Return value
Type: AgsIpatchSample
The AgsIpatchSample
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |