| Top |
| enum | AgsSFZSynthUtilFlags |
| enum | AgsSFZSynthUtilLoopMode |
| #define | AGS_TYPE_SFZ_SYNTH_UTIL |
| struct | AgsSFZSynthUtil |
AgsSFZSynthUtil * ags_sfz_synth_util_alloc ();
Allocate AgsSFZSynthUtil.
Since: 3.9.6
gpointer
ags_sfz_synth_util_boxed_copy (AgsSFZSynthUtil *ptr);
Copy AgsSFZSynthUtil.
Since: 3.9.6
void
ags_sfz_synth_util_free (AgsSFZSynthUtil *ptr);
Free AgsSFZSynthUtil.
Since: 3.9.6
gpointer
ags_sfz_synth_util_get_source (AgsSFZSynthUtil *sfz_synth_util);
Get source buffer of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_source (AgsSFZSynthUtil *sfz_synth_util,gpointer source);
Set source
buffer of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_source_stride (AgsSFZSynthUtil *sfz_synth_util);
Get source stride of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_source_stride (AgsSFZSynthUtil *sfz_synth_util,guint source_stride);
Set source
stride of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_buffer_length (AgsSFZSynthUtil *sfz_synth_util);
Get buffer length of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_buffer_length (AgsSFZSynthUtil *sfz_synth_util,guint buffer_length);
Set buffer_length
of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_format (AgsSFZSynthUtil *sfz_synth_util);
Get format of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_format (AgsSFZSynthUtil *sfz_synth_util,guint format);
Set format
of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_samplerate (AgsSFZSynthUtil *sfz_synth_util);
Get samplerate of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_samplerate (AgsSFZSynthUtil *sfz_synth_util,guint samplerate);
Set samplerate
of sfz_synth_util
.
Since: 3.9.6
gint
ags_sfz_synth_util_get_midi_key (AgsSFZSynthUtil *sfz_synth_util);
Get midi_key of sfz_synth_util
.
Since: 3.17.0
void ags_sfz_synth_util_set_midi_key (AgsSFZSynthUtil *sfz_synth_util,gint midi_key);
Set midi_key
of sfz_synth_util
.
Since: 3.17.0
gdouble
ags_sfz_synth_util_get_note (AgsSFZSynthUtil *sfz_synth_util);
Get note of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_note (AgsSFZSynthUtil *sfz_synth_util,gdouble note);
Set note
of sfz_synth_util
.
Since: 3.9.6
gdouble
ags_sfz_synth_util_get_volume (AgsSFZSynthUtil *sfz_synth_util);
Get volume of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_volume (AgsSFZSynthUtil *sfz_synth_util,gdouble volume);
Set volume
of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_frame_count (AgsSFZSynthUtil *sfz_synth_util);
Get frame count of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_frame_count (AgsSFZSynthUtil *sfz_synth_util,guint frame_count);
Set frame_count
of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_offset (AgsSFZSynthUtil *sfz_synth_util);
Get offset of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_offset (AgsSFZSynthUtil *sfz_synth_util,guint offset);
Set offset
of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_loop_mode (AgsSFZSynthUtil *sfz_synth_util);
Get loop mode of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_loop_mode (AgsSFZSynthUtil *sfz_synth_util,guint loop_mode);
Set loop_mode
of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_loop_start (AgsSFZSynthUtil *sfz_synth_util);
Get loop start of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_loop_start (AgsSFZSynthUtil *sfz_synth_util,guint loop_start);
Set loop_start
of sfz_synth_util
.
Since: 3.9.6
guint
ags_sfz_synth_util_get_loop_end (AgsSFZSynthUtil *sfz_synth_util);
Get loop end of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_loop_end (AgsSFZSynthUtil *sfz_synth_util,guint loop_end);
Set loop_end
of sfz_synth_util
.
Since: 3.9.6
AgsGenericPitchUtil *
ags_sfz_synth_util_get_generic_pitch_util
(AgsSFZSynthUtil *sfz_synth_util);
Get generic pitch util of sfz_synth_util
.
Since: 3.9.6
void ags_sfz_synth_util_set_generic_pitch_util (AgsSFZSynthUtil *sfz_synth_util,AgsGenericPitchUtil *generic_pitch_util);
Set generic_pitch_util
of sfz_synth_util
.
sfz_synth_util |
the AgsSFZSynthUtil |
|
generic_pitch_util |
the generic pitch util. |
[transfer full] |
Since: 3.9.6
void
ags_sfz_synth_util_load_instrument (AgsSFZSynthUtil *sfz_synth_util);
Load instrument of sfz_synth_util
.
Since: 3.17.0
void
ags_sfz_synth_util_compute_s8 (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth of signed 8 bit data.
Since: 3.9.6
void
ags_sfz_synth_util_compute_s16 (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth of signed 16 bit data.
Since: 3.9.6
void
ags_sfz_synth_util_compute_s24 (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth of signed 24 bit data.
Since: 3.9.6
void
ags_sfz_synth_util_compute_s32 (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth of signed 32 bit data.
Since: 3.9.6
void
ags_sfz_synth_util_compute_s64 (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth of signed 64 bit data.
Since: 3.9.6
void
ags_sfz_synth_util_compute_float (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth of floating point data.
Since: 3.9.6
void
ags_sfz_synth_util_compute_double (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth of double precision floating point data.
Since: 3.9.6
void
ags_sfz_synth_util_compute_complex (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth of complex data.
Since: 3.9.6
void
ags_sfz_synth_util_compute (AgsSFZSynthUtil *sfz_synth_util);
Compute Soundfont2 synth.
Since: 3.9.6
void ags_sfz_synth_util_copy_s8 (gint8 *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy_s8 is deprecated and should not be used in newly-written code.
Generate SFZ wave.
buffer |
the audio buffer |
|
buffer_size |
the audio buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
loop start |
|
loop_end |
loop end |
Since: 3.4.0
void ags_sfz_synth_util_copy_s16 (gint16 *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy_s16 is deprecated and should not be used in newly-written code.
Generate SFZ wave.
buffer |
the audio buffer |
|
buffer_size |
the audio buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
loop start |
|
loop_end |
loop end |
Since: 3.4.0
void ags_sfz_synth_util_copy_s24 (gint32 *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy_s24 is deprecated and should not be used in newly-written code.
Generate SFZ wave.
buffer |
the audio buffer |
|
buffer_size |
the audio buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
loop start |
|
loop_end |
loop end |
Since: 3.4.0
void ags_sfz_synth_util_copy_s32 (gint32 *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy_s32 is deprecated and should not be used in newly-written code.
Generate SFZ wave.
buffer |
the audio buffer |
|
buffer_size |
the audio buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
loop start |
|
loop_end |
loop end |
Since: 3.4.0
void ags_sfz_synth_util_copy_s64 (gint64 *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy_s64 is deprecated and should not be used in newly-written code.
Generate SFZ wave.
buffer |
the audio buffer |
|
buffer_size |
the audio buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
loop start |
|
loop_end |
loop end |
Since: 3.4.0
void ags_sfz_synth_util_copy_float (gfloat *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy_float is deprecated and should not be used in newly-written code.
Generate SFZ wave.
buffer |
the audio buffer |
|
buffer_size |
the audio buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
loop start |
|
loop_end |
loop end |
Since: 3.4.0
void ags_sfz_synth_util_copy_double (gdouble *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy_double is deprecated and should not be used in newly-written code.
Generate SFZ wave.
buffer |
the audio buffer |
|
buffer_size |
the audio buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
loop start |
|
loop_end |
loop end |
Since: 3.4.0
void ags_sfz_synth_util_copy_complex (AgsComplex *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy_complex is deprecated and should not be used in newly-written code.
Generate SFZ wave.
buffer |
the audio buffer |
|
buffer_size |
the audio buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
loop start |
|
loop_end |
loop end |
Since: 3.4.0
void ags_sfz_synth_util_copy (void *buffer,guint buffer_size,AgsSFZSample *sfz_sample,gdouble note,gdouble volume,guint samplerate,guint audio_buffer_util_format,guint offset,guint n_frames,guint loop_mode,gint loop_start,gint loop_end);
ags_sfz_synth_util_copy is deprecated and should not be used in newly-written code.
Generate Soundfont2 wave.
buffer |
the audio buffer |
|
buffer_size |
the buffer size |
|
sfz_sample |
the AgsSFZSample |
|
note |
the note |
|
volume |
the volume of the sin wave |
|
samplerate |
the samplerate |
|
audio_buffer_util_format |
the audio data format |
|
offset |
start frame |
|
n_frames |
generate n frames |
|
loop_mode |
the loop mode |
|
loop_start |
the loop start |
|
loop_end |
the loop end |
Since: 3.4.0
struct AgsSFZSynthUtil {
guint flags;
AgsAudioContainer *sfz_file;
guint sfz_sample_count;
AgsSFZSample **sfz_sample_arr;
gint **sfz_note_range;
gint sfz_loop_mode[128];
gint sfz_loop_start[128];
gint sfz_loop_end[128];
guint sfz_orig_buffer_length[128];
gpointer *sfz_orig_buffer;
guint sfz_resampled_buffer_length[128];
gpointer *sfz_resampled_buffer;
AgsSFZSample *sfz_sample;
gpointer source;
guint source_stride;
gpointer sample_buffer;
gpointer im_buffer;
guint buffer_length;
guint format;
guint samplerate;
guint orig_samplerate;
gint midi_key;
gdouble note;
gdouble volume;
guint frame_count;
guint offset;
guint loop_mode;
guint loop_start;
guint loop_end;
AgsResampleUtil *resample_util;
AgsGenericPitchUtil *generic_pitch_util;
AgsHQPitchUtil *hq_pitch_util;
AgsVolumeUtil *volume_util;
};