AgsSFZUtil

AgsSFZUtil — SFZ synth util

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

struct AgsSFZ

Object Hierarchy

    GBoxed
    ╰── AgsSFZUtil

Includes

#include <ags/audio/ags_sfz_util.h>

Description

Utility functions to compute SFZ synths.

Functions

AGS_SFZ()

#define AGS_SFZ(ptr)                ((AgsSFZ *)(ptr))

ags_sfz_get_note ()

gdouble
ags_sfz_get_note (AgsSFZ *sfz);

Get note.

Parameters

sfz

the AgsSFZ

 

Returns

the note

Since: 3.9.1


ags_sfz_set_note ()

void
ags_sfz_set_note (AgsSFZ *sfz,
                  gdouble note);

Set note.

Parameters

sfz

the AgsSFZ

 

note

the note

 

Since: 3.9.1


ags_sfz_get_volume ()

gdouble
ags_sfz_get_volume (AgsSFZ *sfz);

Get volume.

Parameters

sfz

the AgsSFZ

 

Returns

the volume

Since: 3.9.1


ags_sfz_set_volume ()

void
ags_sfz_set_volume (AgsSFZ *sfz,
                    gdouble volume);

Set volume.

Parameters

sfz

the AgsSFZ

 

volume

the volume

 

Since: 3.9.1


ags_sfz_get_samplerate ()

guint
ags_sfz_get_samplerate (AgsSFZ *sfz);

Get samplerate.

Parameters

sfz

the AgsSFZ

 

Returns

the samplerate

Since: 3.9.1


ags_sfz_set_samplerate ()

void
ags_sfz_set_samplerate (AgsSFZ *sfz,
                        guint samplerate);

Set samplerate.

Parameters

sfz

the AgsSFZ

 

samplerate

the samplerate

 

Since: 3.9.1


ags_sfz_get_offset ()

guint
ags_sfz_get_offset (AgsSFZ *sfz);

Get offset.

Parameters

sfz

the AgsSFZ

 

Returns

the offset

Since: 3.9.1


ags_sfz_set_offset ()

void
ags_sfz_set_offset (AgsSFZ *sfz,
                    guint offset);

Set offset.

Parameters

sfz

the AgsSFZ

 

offset

the offset

 

Since: 3.9.1


ags_sfz_get_n_frames ()

guint
ags_sfz_get_n_frames (AgsSFZ *sfz);

Get n-frames.

Parameters

sfz

the AgsSFZ

 

Returns

the n-frames

Since: 3.9.1


ags_sfz_set_n_frames ()

void
ags_sfz_set_n_frames (AgsSFZ *sfz,
                      guint n_frames);

Set n-frames.

Parameters

sfz

the AgsSFZ

 

n_frames

the n-frames

 

Since: 3.9.1


ags_sfz_get_loop_mode ()

guint
ags_sfz_get_loop_mode (AgsSFZ *sfz);

Get loop mode.

Parameters

sfz

the AgsSFZ

 

Returns

the loop mode

Since: 3.9.1


ags_sfz_set_loop_mode ()

void
ags_sfz_set_loop_mode (AgsSFZ *sfz,
                       guint loop_mode);

Set loop mode.

Parameters

sfz

the AgsSFZ

 

loop_mode

the loop mode

 

Since: 3.9.1


ags_sfz_get_loop_start ()

guint
ags_sfz_get_loop_start (AgsSFZ *sfz);

Get loop start.

Parameters

sfz

the AgsSFZ

 

Returns

the loop start

Since: 3.9.1


ags_sfz_set_loop_start ()

void
ags_sfz_set_loop_start (AgsSFZ *sfz,
                        guint loop_start);

Set loop start.

Parameters

sfz

the AgsSFZ

 

loop_start

the loop start

 

Since: 3.9.1


ags_sfz_get_loop_end ()

guint
ags_sfz_get_loop_end (AgsSFZ *sfz);

Get loop end.

Parameters

sfz

the AgsSFZ

 

Returns

the loop end

Since: 3.9.1


ags_sfz_set_loop_end ()

void
ags_sfz_set_loop_end (AgsSFZ *sfz,
                      guint loop_end);

Set loop end.

Parameters

sfz

the AgsSFZ

 

loop_end

the loop end

 

Since: 3.9.1


ags_sfz_get_generic_pitch ()

gpointer
ags_sfz_get_generic_pitch (AgsSFZ *sfz);

Get generic pitch.

Parameters

sfz

the AgsSFZ

 

Returns

the generic pitch

Since: 3.9.1


ags_sfz_set_generic_pitch ()

void
ags_sfz_set_generic_pitch (AgsSFZ *sfz,
                           gpointer generic_pitch);

Set generic pitch.

Parameters

sfz

the AgsSFZ

 

generic_pitch

the generic pitch

 

Since: 3.9.1


ags_sfz_get_user_data ()

gpointer
ags_sfz_get_user_data (AgsSFZ *sfz);

Get user data.

Parameters

sfz

the AgsSFZ

 

Returns

the user data

Since: 3.9.1


ags_sfz_set_user_data ()

void
ags_sfz_set_user_data (AgsSFZ *sfz,
                       gpointer user_data);

Set user data.

Parameters

sfz

the AgsSFZ

 

user_data

the user data

 

Since: 3.9.1


ags_sfz_util_copy_s8 ()

void
ags_sfz_util_copy_s8 (AgsSFZ *sfz,
                      gint8 *buffer,
                      guint buffer_size,
                      AgsSFZSample *sfz_sample);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

Since: 3.9.0


ags_sfz_util_copy_s16 ()

void
ags_sfz_util_copy_s16 (AgsSFZ *sfz,
                       gint16 *buffer,
                       guint buffer_size,
                       AgsSFZSample *sfz_sample);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

Since: 3.9.0


ags_sfz_util_copy_s24 ()

void
ags_sfz_util_copy_s24 (AgsSFZ *sfz,
                       gint32 *buffer,
                       guint buffer_size,
                       AgsSFZSample *sfz_sample);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

Since: 3.9.0


ags_sfz_util_copy_s32 ()

void
ags_sfz_util_copy_s32 (AgsSFZ *sfz,
                       gint32 *buffer,
                       guint buffer_size,
                       AgsSFZSample *sfz_sample);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

Since: 3.9.0


ags_sfz_util_copy_s64 ()

void
ags_sfz_util_copy_s64 (AgsSFZ *sfz,
                       gint64 *buffer,
                       guint buffer_size,
                       AgsSFZSample *sfz_sample);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

Since: 3.9.0


ags_sfz_util_copy_float ()

void
ags_sfz_util_copy_float (AgsSFZ *sfz,
                         gfloat *buffer,
                         guint buffer_size,
                         AgsSFZSample *sfz_sample);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

Since: 3.9.0


ags_sfz_util_copy_double ()

void
ags_sfz_util_copy_double (AgsSFZ *sfz,
                          gdouble *buffer,
                          guint buffer_size,
                          AgsSFZSample *sfz_sample);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

Since: 3.9.0


ags_sfz_util_copy_complex ()

void
ags_sfz_util_copy_complex (AgsSFZ *sfz,
                           AgsComplex *buffer,
                           guint buffer_size,
                           AgsSFZSample *sfz_sample);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

Since: 3.9.0


ags_sfz_util_copy ()

void
ags_sfz_util_copy (AgsSFZ *sfz,
                   void *buffer,
                   guint buffer_size,
                   AgsSFZSample *sfz_sample,
                   guint audio_buffer_util_format);

Generate Soundfont2 wave.

Parameters

sfz

the AgsSFZ

 

buffer

the audio buffer

 

buffer_size

the audio buffer length

 

sfz_sample

the AgsSFZSample

 

audio_buffer_util_format

the audio data format

 

Since: 3.9.0

Types and Values

struct AgsSFZ

struct AgsSFZ {
  gdouble note;

  gdouble volume;

  guint samplerate;

  guint offset;
  guint n_frames;

  guint loop_mode;

  gint loop_start;
  gint loop_end;

  gpointer generic_pitch;

  gpointer user_data;
};