Top |
Functions
Types and Values
enum | AgsSF2SynthUtilFlags |
enum | AgsSF2SynthUtilLoopMode |
#define | AGS_TYPE_SF2_SYNTH_UTIL |
struct | AgsSF2SynthUtil |
Functions
ags_sf2_synth_util_alloc ()
AgsSF2SynthUtil * ags_sf2_synth_util_alloc ();
Allocate AgsSF2SynthUtil.
Since:
ags_sf2_synth_util_boxed_copy ()
gpointer ags_sf2_synth_util_boxed_copy (AgsSF2SynthUtil *ptr
);
Copy AgsSF2SynthUtil.
Since:
ags_sf2_synth_util_free ()
void ags_sf2_synth_util_free (AgsSF2SynthUtil *ptr
);
Free AgsSF2SynthUtil.
Since:
ags_sf2_synth_util_get_sf2_file ()
AgsAudioContainer *
ags_sf2_synth_util_get_sf2_file (AgsSF2SynthUtil *sf2_synth_util
);
Get Soundfont2 file of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_sf2_file ()
void ags_sf2_synth_util_set_sf2_file (AgsSF2SynthUtil *sf2_synth_util
,AgsAudioContainer *sf2_file
);
Set Soundfont2 file of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_source ()
gpointer ags_sf2_synth_util_get_source (AgsSF2SynthUtil *sf2_synth_util
);
Get source buffer of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_source ()
void ags_sf2_synth_util_set_source (AgsSF2SynthUtil *sf2_synth_util
,);
gpointer source
Set source
buffer of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_source_stride ()
guint ags_sf2_synth_util_get_source_stride (AgsSF2SynthUtil *sf2_synth_util
);
Get source stride of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_source_stride ()
void ags_sf2_synth_util_set_source_stride (AgsSF2SynthUtil *sf2_synth_util
,);
guint source_stride
Set source
stride of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_buffer_length ()
guint ags_sf2_synth_util_get_buffer_length (AgsSF2SynthUtil *sf2_synth_util
);
Get buffer length of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_buffer_length ()
void ags_sf2_synth_util_set_buffer_length (AgsSF2SynthUtil *sf2_synth_util
,);
guint buffer_length
Set buffer_length
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_format ()
guint ags_sf2_synth_util_get_format (AgsSF2SynthUtil *sf2_synth_util
);
Get format of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_format ()
void ags_sf2_synth_util_set_format (AgsSF2SynthUtil *sf2_synth_util
,);
guint format
Set format
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_samplerate ()
guint ags_sf2_synth_util_get_samplerate (AgsSF2SynthUtil *sf2_synth_util
);
Get samplerate of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_samplerate ()
void ags_sf2_synth_util_set_samplerate (AgsSF2SynthUtil *sf2_synth_util
,);
guint samplerate
Set samplerate
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_preset ()
gchar * ags_sf2_synth_util_get_preset (AgsSF2SynthUtil *sf2_synth_util
);
Get preset of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_preset ()
void ags_sf2_synth_util_set_preset (AgsSF2SynthUtil *sf2_synth_util
,);
gchar *preset
Set preset
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_instrument ()
gchar * ags_sf2_synth_util_get_instrument (AgsSF2SynthUtil *sf2_synth_util
);
Get instrument of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_instrument ()
void ags_sf2_synth_util_set_instrument (AgsSF2SynthUtil *sf2_synth_util
,);
gchar *instrument
Set instrument
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_sample ()
gchar * ags_sf2_synth_util_get_sample (AgsSF2SynthUtil *sf2_synth_util
);
Get sample of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_sample ()
void ags_sf2_synth_util_set_sample (AgsSF2SynthUtil *sf2_synth_util
,);
gchar *sample
Set sample
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_bank ()
gint ags_sf2_synth_util_get_bank (AgsSF2SynthUtil *sf2_synth_util
);
Get bank of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_bank ()
void ags_sf2_synth_util_set_bank (AgsSF2SynthUtil *sf2_synth_util
,);
gint bank
Set bank
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_program ()
gint ags_sf2_synth_util_get_program (AgsSF2SynthUtil *sf2_synth_util
);
Get program of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_program ()
void ags_sf2_synth_util_set_program (AgsSF2SynthUtil *sf2_synth_util
,);
gint program
Set program
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_midi_key ()
gint ags_sf2_synth_util_get_midi_key (AgsSF2SynthUtil *sf2_synth_util
);
Get midi_key of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_midi_key ()
void ags_sf2_synth_util_set_midi_key (AgsSF2SynthUtil *sf2_synth_util
,);
gint midi_key
Set midi_key
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_note ()
gdouble ags_sf2_synth_util_get_note (AgsSF2SynthUtil *sf2_synth_util
);
Get note of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_note ()
void ags_sf2_synth_util_set_note (AgsSF2SynthUtil *sf2_synth_util
,);
gdouble note
Set note
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_volume ()
gdouble ags_sf2_synth_util_get_volume (AgsSF2SynthUtil *sf2_synth_util
);
Get volume of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_volume ()
void ags_sf2_synth_util_set_volume (AgsSF2SynthUtil *sf2_synth_util
,);
gdouble volume
Set volume
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_frame_count ()
guint ags_sf2_synth_util_get_frame_count (AgsSF2SynthUtil *sf2_synth_util
);
Get frame count of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_frame_count ()
void ags_sf2_synth_util_set_frame_count (AgsSF2SynthUtil *sf2_synth_util
,);
guint frame_count
Set frame_count
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_offset ()
guint ags_sf2_synth_util_get_offset (AgsSF2SynthUtil *sf2_synth_util
);
Get offset of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_offset ()
void ags_sf2_synth_util_set_offset (AgsSF2SynthUtil *sf2_synth_util
,);
guint offset
Set offset
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_loop_mode ()
guint ags_sf2_synth_util_get_loop_mode (AgsSF2SynthUtil *sf2_synth_util
);
Get loop mode of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_loop_mode ()
void ags_sf2_synth_util_set_loop_mode (AgsSF2SynthUtil *sf2_synth_util
,);
guint loop_mode
Set loop_mode
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_loop_start ()
guint ags_sf2_synth_util_get_loop_start (AgsSF2SynthUtil *sf2_synth_util
);
Get loop start of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_loop_start ()
void ags_sf2_synth_util_set_loop_start (AgsSF2SynthUtil *sf2_synth_util
,);
guint loop_start
Set loop_start
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_loop_end ()
guint ags_sf2_synth_util_get_loop_end (AgsSF2SynthUtil *sf2_synth_util
);
Get loop end of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_loop_end ()
void ags_sf2_synth_util_set_loop_end (AgsSF2SynthUtil *sf2_synth_util
,);
guint loop_end
Set loop_end
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_resample_util ()
AgsResampleUtil *
ags_sf2_synth_util_get_resample_util (AgsSF2SynthUtil *sf2_synth_util
);
Get resample util of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_resample_util ()
void ags_sf2_synth_util_set_resample_util (AgsSF2SynthUtil *sf2_synth_util
,AgsResampleUtil *resample_util
);
Set resample_util
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_pitch_type ()
GType ags_sf2_synth_util_get_pitch_type (AgsSF2SynthUtil *sf2_synth_util
);
Get pitch type of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_pitch_type ()
void ags_sf2_synth_util_set_pitch_type (AgsSF2SynthUtil *sf2_synth_util
,);
GType pitch_type
Set pitch_type
of sf2_synth_util
.
Since:
ags_sf2_synth_util_get_pitch_util ()
gpointer ags_sf2_synth_util_get_pitch_util (AgsSF2SynthUtil *sf2_synth_util
);
Get pitch util of sf2_synth_util
.
Since:
ags_sf2_synth_util_set_pitch_util ()
void ags_sf2_synth_util_set_pitch_util (AgsSF2SynthUtil *sf2_synth_util
,);
gpointer pitch_util
Set pitch_util
of sf2_synth_util
.
Since:
ags_sf2_synth_util_load_instrument ()
void ags_sf2_synth_util_load_instrument (AgsSF2SynthUtil *sf2_synth_util
,,
gchar *preset);
gchar *instrument
Load instrument of sf2_synth_util
.
Since:
ags_sf2_synth_util_load_midi_locale ()
void ags_sf2_synth_util_load_midi_locale (AgsSF2SynthUtil *sf2_synth_util
,,
gint bank);
gint program
Load midi locale of sf2_synth_util
.
Since:
ags_sf2_synth_util_compute_s8 ()
void ags_sf2_synth_util_compute_s8 (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth of signed 8 bit data.
Since:
ags_sf2_synth_util_compute_s16 ()
void ags_sf2_synth_util_compute_s16 (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth of signed 16 bit data.
Since:
ags_sf2_synth_util_compute_s24 ()
void ags_sf2_synth_util_compute_s24 (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth of signed 24 bit data.
Since:
ags_sf2_synth_util_compute_s32 ()
void ags_sf2_synth_util_compute_s32 (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth of signed 32 bit data.
Since:
ags_sf2_synth_util_compute_s64 ()
void ags_sf2_synth_util_compute_s64 (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth of signed 64 bit data.
Since:
ags_sf2_synth_util_compute_float ()
void ags_sf2_synth_util_compute_float (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth of floating point data.
Since:
ags_sf2_synth_util_compute_double ()
void ags_sf2_synth_util_compute_double (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth of double precision floating point data.
Since:
ags_sf2_synth_util_compute_complex ()
void ags_sf2_synth_util_compute_complex (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth of complex data.
Since:
ags_sf2_synth_util_compute ()
void ags_sf2_synth_util_compute (AgsSF2SynthUtil *sf2_synth_util
);
Compute Soundfont2 synth.
Since:
ags_sf2_synth_util_midi_locale_find_sample_near_midi_key ()
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
Find sample near MIDI key.
Parameters
ipatch |
the AgsIpatch |
|
bank |
the bank |
|
program |
the program |
|
midi_key |
the MIDI key |
|
preset |
the preset. |
[out] |
instrument |
the instrument. |
[out] |
sample |
the sample. |
[out] |
Since:
Types and Values
struct AgsSF2SynthUtil
struct AgsSF2SynthUtil { guint flags; AgsAudioContainer *sf2_file; guint sf2_sample_count; IpatchSample **sf2_sample_arr; gint **sf2_note_range; gint sf2_loop_mode[128]; gint sf2_loop_start[128]; gint sf2_loop_end[128]; guint sf2_orig_buffer_length[128]; gpointer *sf2_orig_buffer; guint sf2_resampled_buffer_length[128]; gpointer *sf2_resampled_buffer; gpointer source; guint source_stride; gpointer sample_buffer; gpointer im_buffer; guint buffer_length; guint format; guint samplerate; guint orig_samplerate; gchar *preset; gchar *instrument; gchar *sample; gint bank; gint program; gint midi_key; gdouble note; gdouble volume; guint frame_count; guint offset; guint loop_mode; gint loop_start; gint loop_end; AgsResampleUtil *resample_util; GType pitch_type; gpointer pitch_util; AgsVolumeUtil *volume_util; };