ags_synth_util

ags_synth_util

Functions

Description

Functions

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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45


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: 0.7.45

Types and Values