AgsSFZSynthUtil

AgsSFZSynthUtil — SFZ synth util

Functions

Types and Values

Includes

#include <ags/audio/ags_sfz_synth_util.h>

Description

Utility functions to compute SFZ synths.

Functions

ags_sfz_synth_util_copy_s8 ()

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);

Generate SFZ wave.

Parameters

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


ags_sfz_synth_util_copy_s16 ()

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);

Generate SFZ wave.

Parameters

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


ags_sfz_synth_util_copy_s24 ()

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);

Generate SFZ wave.

Parameters

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


ags_sfz_synth_util_copy_s32 ()

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);

Generate SFZ wave.

Parameters

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


ags_sfz_synth_util_copy_s64 ()

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);

Generate SFZ wave.

Parameters

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


ags_sfz_synth_util_copy_float ()

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);

Generate SFZ wave.

Parameters

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


ags_sfz_synth_util_copy_double ()

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);

Generate SFZ wave.

Parameters

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


ags_sfz_synth_util_copy_complex ()

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);

Generate SFZ wave.

Parameters

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


ags_sfz_synth_util_copy ()

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);

Generate Soundfont2 wave.

Parameters

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

Types and Values

enum AgsSFZSynthUtilLoopMode

Members

AGS_SFZ_SYNTH_UTIL_LOOP_NONE

   

AGS_SFZ_SYNTH_UTIL_LOOP_STANDARD

   

AGS_SFZ_SYNTH_UTIL_LOOP_RELEASE

   

AGS_SFZ_SYNTH_UTIL_LOOP_PINGPONG