ags_synth_util

ags_synth_util

Functions

Description

Functions

ags_synth_util_get_xcross_count_s8 ()

guint
ags_synth_util_get_xcross_count_s8 (signed char *buffer,
                                    guint buffer_size);

Get zero-cross count.

Parameters

buffer

the buffer containing audio data

 

buffer_size

the buffer size

 

Returns

the count of zero-crossings

Since: 1.0.0


ags_synth_util_get_xcross_count_s16 ()

guint
ags_synth_util_get_xcross_count_s16 (signed short *buffer,
                                     guint buffer_size);

Get zero-cross count.

Parameters

buffer

the buffer containing audio data

 

buffer_size

the buffer size

 

Returns

the count of zero-crossings

Since: 1.0.0


ags_synth_util_get_xcross_count_s24 ()

guint
ags_synth_util_get_xcross_count_s24 (signed long *buffer,
                                     guint buffer_size);

Get zero-cross count.

Parameters

buffer

the buffer containing audio data

 

buffer_size

the buffer size

 

Returns

the count of zero-crossings

Since: 1.0.0


ags_synth_util_get_xcross_count_s32 ()

guint
ags_synth_util_get_xcross_count_s32 (signed long *buffer,
                                     guint buffer_size);

Get zero-cross count.

Parameters

buffer

the buffer containing audio data

 

buffer_size

the buffer size

 

Returns

the count of zero-crossings

Since: 1.0.0


ags_synth_util_get_xcross_count_s64 ()

guint
ags_synth_util_get_xcross_count_s64 (signed long long *buffer,
                                     guint buffer_size);

Get zero-cross count.

Parameters

buffer

the buffer containing audio data

 

buffer_size

the buffer size

 

Returns

the count of zero-crossings

Since: 1.0.0


ags_synth_util_get_xcross_count_float ()

guint
ags_synth_util_get_xcross_count_float (float *buffer,
                                       guint buffer_size);

Get zero-cross count.

Parameters

buffer

the buffer containing audio data

 

buffer_size

the buffer size

 

Returns

the count of zero-crossings

Since: 1.0.0


ags_synth_util_get_xcross_count_double ()

guint
ags_synth_util_get_xcross_count_double
                               (double *buffer,
                                guint buffer_size);

Get zero-cross count.

Parameters

buffer

the buffer containing audio data

 

buffer_size

the buffer size

 

Returns

the count of zero-crossings

Since: 1.0.0


ags_synth_util_get_xcross_count ()

guint
ags_synth_util_get_xcross_count (void *buffer,
                                 guint audio_buffer_util_format,
                                 guint buffer_size);

Get zero-cross count.

Parameters

buffer

the buffer containing audio data

 

audio_buffer_util_format

the audio buffer util format

 

buffer_size

the buffer size

 

Returns

the count of zero-crossings

Since: 1.0.0


ags_synth_util_sin_s8 ()

void
ags_synth_util_sin_s8 (signed char *buffer,
                       gdouble freq,
                       gdouble phase,
                       gdouble volume,
                       guint samplerate,
                       guint offset,
                       guint n_frames);

Generate sinus wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sin wave

 

phase

the phase of the sin wave

 

volume

the volume of the sin wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sin_s16 ()

void
ags_synth_util_sin_s16 (signed short *buffer,
                        gdouble freq,
                        gdouble phase,
                        gdouble volume,
                        guint samplerate,
                        guint offset,
                        guint n_frames);

Generate sinus wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sin wave

 

phase

the phase of the sin wave

 

volume

the volume of the sin wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sin_s24 ()

void
ags_synth_util_sin_s24 (signed long *buffer,
                        gdouble freq,
                        gdouble phase,
                        gdouble volume,
                        guint samplerate,
                        guint offset,
                        guint n_frames);

Generate sinus wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sin wave

 

phase

the phase of the sin wave

 

volume

the volume of the sin wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sin_s32 ()

void
ags_synth_util_sin_s32 (signed long *buffer,
                        gdouble freq,
                        gdouble phase,
                        gdouble volume,
                        guint samplerate,
                        guint offset,
                        guint n_frames);

Generate sinus wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sin wave

 

phase

the phase of the sin wave

 

volume

the volume of the sin wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sin_s64 ()

void
ags_synth_util_sin_s64 (signed long long *buffer,
                        gdouble freq,
                        gdouble phase,
                        gdouble volume,
                        guint samplerate,
                        guint offset,
                        guint n_frames);

Generate sinus wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sin wave

 

phase

the phase of the sin wave

 

volume

the volume of the sin wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sin_float ()

void
ags_synth_util_sin_float (float *buffer,
                          gdouble freq,
                          gdouble phase,
                          gdouble volume,
                          guint samplerate,
                          guint offset,
                          guint n_frames);

Generate sinus wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sin wave

 

phase

the phase of the sin wave

 

volume

the volume of the sin wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sin_double ()

void
ags_synth_util_sin_double (double *buffer,
                           gdouble freq,
                           gdouble phase,
                           gdouble volume,
                           guint samplerate,
                           guint offset,
                           guint n_frames);

Generate sinus wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sin wave

 

phase

the phase of the sin wave

 

volume

the volume of the sin wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sawtooth_s8 ()

void
ags_synth_util_sawtooth_s8 (signed char *buffer,
                            gdouble freq,
                            gdouble phase,
                            gdouble volume,
                            guint samplerate,
                            guint offset,
                            guint n_frames);

Generate sawtooth wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sawtooth wave

 

phase

the phase of the sawtooth wave

 

volume

the volume of the sawtooth wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sawtooth_s16 ()

void
ags_synth_util_sawtooth_s16 (signed short *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate sawtooth wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sawtooth wave

 

phase

the phase of the sawtooth wave

 

volume

the volume of the sawtooth wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sawtooth_s24 ()

void
ags_synth_util_sawtooth_s24 (signed long *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate sawtooth wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sawtooth wave

 

phase

the phase of the sawtooth wave

 

volume

the volume of the sawtooth wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sawtooth_s32 ()

void
ags_synth_util_sawtooth_s32 (signed long *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate sawtooth wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sawtooth wave

 

phase

the phase of the sawtooth wave

 

volume

the volume of the sawtooth wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sawtooth_s64 ()

void
ags_synth_util_sawtooth_s64 (signed long long *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate sawtooth wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sawtooth wave

 

phase

the phase of the sawtooth wave

 

volume

the volume of the sawtooth wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sawtooth_float ()

void
ags_synth_util_sawtooth_float (float *buffer,
                               gdouble freq,
                               gdouble phase,
                               gdouble volume,
                               guint samplerate,
                               guint offset,
                               guint n_frames);

Generate sawtooth wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sawtooth wave

 

phase

the phase of the sawtooth wave

 

volume

the volume of the sawtooth wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sawtooth_double ()

void
ags_synth_util_sawtooth_double (double *buffer,
                                gdouble freq,
                                gdouble phase,
                                gdouble volume,
                                guint samplerate,
                                guint offset,
                                guint n_frames);

Generate sawtooth wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sawtooth wave

 

phase

the phase of the sawtooth wave

 

volume

the volume of the sawtooth wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_triangle_s8 ()

void
ags_synth_util_triangle_s8 (signed char *buffer,
                            gdouble freq,
                            gdouble phase,
                            gdouble volume,
                            guint samplerate,
                            guint offset,
                            guint n_frames);

Generate triangle wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the triangle wave

 

phase

the phase of the triangle wave

 

volume

the volume of the triangle wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_triangle_s16 ()

void
ags_synth_util_triangle_s16 (signed short *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate triangle wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the triangle wave

 

phase

the phase of the triangle wave

 

volume

the volume of the triangle wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_triangle_s24 ()

void
ags_synth_util_triangle_s24 (signed long *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate triangle wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the triangle wave

 

phase

the phase of the triangle wave

 

volume

the volume of the triangle wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_triangle_s32 ()

void
ags_synth_util_triangle_s32 (signed long *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate triangle wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the triangle wave

 

phase

the phase of the triangle wave

 

volume

the volume of the triangle wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_triangle_s64 ()

void
ags_synth_util_triangle_s64 (signed long long *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate triangle wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the triangle wave

 

phase

the phase of the triangle wave

 

volume

the volume of the triangle wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_triangle_float ()

void
ags_synth_util_triangle_float (float *buffer,
                               gdouble freq,
                               gdouble phase,
                               gdouble volume,
                               guint samplerate,
                               guint offset,
                               guint n_frames);

Generate triangle wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the triangle wave

 

phase

the phase of the triangle wave

 

volume

the volume of the triangle wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_triangle_double ()

void
ags_synth_util_triangle_double (double *buffer,
                                gdouble freq,
                                gdouble phase,
                                gdouble volume,
                                guint samplerate,
                                guint offset,
                                guint n_frames);

Generate triangle wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the triangle wave

 

phase

the phase of the triangle wave

 

volume

the volume of the triangle wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_square_s8 ()

void
ags_synth_util_square_s8 (signed char *buffer,
                          gdouble freq,
                          gdouble phase,
                          gdouble volume,
                          guint samplerate,
                          guint offset,
                          guint n_frames);

Generate square wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the square wave

 

phase

the phase of the square wave

 

volume

the volume of the square wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_square_s16 ()

void
ags_synth_util_square_s16 (signed short *buffer,
                           gdouble freq,
                           gdouble phase,
                           gdouble volume,
                           guint samplerate,
                           guint offset,
                           guint n_frames);

Generate square wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the square wave

 

phase

the phase of the square wave

 

volume

the volume of the square wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_square_s24 ()

void
ags_synth_util_square_s24 (signed long *buffer,
                           gdouble freq,
                           gdouble phase,
                           gdouble volume,
                           guint samplerate,
                           guint offset,
                           guint n_frames);

Generate square wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the square wave

 

phase

the phase of the square wave

 

volume

the volume of the square wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_square_s32 ()

void
ags_synth_util_square_s32 (signed long *buffer,
                           gdouble freq,
                           gdouble phase,
                           gdouble volume,
                           guint samplerate,
                           guint offset,
                           guint n_frames);

Generate square wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the square wave

 

phase

the phase of the square wave

 

volume

the volume of the square wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_square_s64 ()

void
ags_synth_util_square_s64 (signed long long *buffer,
                           gdouble freq,
                           gdouble phase,
                           gdouble volume,
                           guint samplerate,
                           guint offset,
                           guint n_frames);

Generate square wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the square wave

 

phase

the phase of the square wave

 

volume

the volume of the square wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_square_float ()

void
ags_synth_util_square_float (float *buffer,
                             gdouble freq,
                             gdouble phase,
                             gdouble volume,
                             guint samplerate,
                             guint offset,
                             guint n_frames);

Generate square wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the square wave

 

phase

the phase of the square wave

 

volume

the volume of the square wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_square_double ()

void
ags_synth_util_square_double (double *buffer,
                              gdouble freq,
                              gdouble phase,
                              gdouble volume,
                              guint samplerate,
                              guint offset,
                              guint n_frames);

Generate square wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the square wave

 

phase

the phase of the square wave

 

volume

the volume of the square wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_sin ()

void
ags_synth_util_sin (void *buffer,
                    gdouble freq,
                    gdouble phase,
                    gdouble volume,
                    guint samplerate,
                    guint audio_buffer_util_format,
                    guint offset,
                    guint n_frames);

Generate sin wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sin wave

 

phase

the phase of the sin wave

 

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

 

Since: 1.0.0


ags_synth_util_sawtooth ()

void
ags_synth_util_sawtooth (void *buffer,
                         gdouble freq,
                         gdouble phase,
                         gdouble volume,
                         guint samplerate,
                         guint audio_buffer_util_format,
                         guint offset,
                         guint n_frames);

Generate sawtooth wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the sawtooth wave

 

phase

the phase of the sawtooth wave

 

volume

the volume of the sawtooth wave

 

samplerate

the samplerate

 

audio_buffer_util_format

the audio data format

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_triangle ()

void
ags_synth_util_triangle (void *buffer,
                         gdouble freq,
                         gdouble phase,
                         gdouble volume,
                         guint samplerate,
                         guint audio_buffer_util_format,
                         guint offset,
                         guint n_frames);

Generate triangle wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the triangle wave

 

phase

the phase of the triangle wave

 

volume

the volume of the triangle wave

 

samplerate

the samplerate

 

audio_buffer_util_format

the audio data format

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0


ags_synth_util_square ()

void
ags_synth_util_square (void *buffer,
                       gdouble freq,
                       gdouble phase,
                       gdouble volume,
                       guint samplerate,
                       guint audio_buffer_util_format,
                       guint offset,
                       guint n_frames);

Generate square wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the square wave

 

phase

the phase of the square wave

 

volume

the volume of the square wave

 

samplerate

the samplerate

 

audio_buffer_util_format

the audio data format

 

offset

start frame

 

n_frames

generate n frames

 

Since: 1.0.0

Types and Values