krähemann.com

AgsSynthUtil

AgsSynthUtil — synth util

Functions

guint ags_synth_util_get_xcross_count_s8 ()
guint ags_synth_util_get_xcross_count_s16 ()
guint ags_synth_util_get_xcross_count_s24 ()
guint ags_synth_util_get_xcross_count_s32 ()
guint ags_synth_util_get_xcross_count_s64 ()
guint ags_synth_util_get_xcross_count_float ()
guint ags_synth_util_get_xcross_count_double ()
guint ags_synth_util_get_xcross_count_complex ()
guint ags_synth_util_get_xcross_count ()
void ags_synth_util_sin_s8 ()
void ags_synth_util_sin_s16 ()
void ags_synth_util_sin_s24 ()
void ags_synth_util_sin_s32 ()
void ags_synth_util_sin_s64 ()
void ags_synth_util_sin_float ()
void ags_synth_util_sin_double ()
void ags_synth_util_sin_complex ()
void ags_synth_util_sawtooth_s8 ()
void ags_synth_util_sawtooth_s16 ()
void ags_synth_util_sawtooth_s24 ()
void ags_synth_util_sawtooth_s32 ()
void ags_synth_util_sawtooth_s64 ()
void ags_synth_util_sawtooth_float ()
void ags_synth_util_sawtooth_double ()
void ags_synth_util_sawtooth_complex ()
void ags_synth_util_triangle_s8 ()
void ags_synth_util_triangle_s16 ()
void ags_synth_util_triangle_s24 ()
void ags_synth_util_triangle_s32 ()
void ags_synth_util_triangle_s64 ()
void ags_synth_util_triangle_float ()
void ags_synth_util_triangle_double ()
void ags_synth_util_triangle_complex ()
void ags_synth_util_square_s8 ()
void ags_synth_util_square_s16 ()
void ags_synth_util_square_s24 ()
void ags_synth_util_square_s32 ()
void ags_synth_util_square_s64 ()
void ags_synth_util_square_float ()
void ags_synth_util_square_double ()
void ags_synth_util_square_complex ()
void ags_synth_util_impulse_s8 ()
void ags_synth_util_impulse_s16 ()
void ags_synth_util_impulse_s24 ()
void ags_synth_util_impulse_s32 ()
void ags_synth_util_impulse_s64 ()
void ags_synth_util_impulse_float ()
void ags_synth_util_impulse_double ()
void ags_synth_util_impulse_complex ()
void ags_synth_util_sin ()
void ags_synth_util_sawtooth ()
void ags_synth_util_triangle ()
void ags_synth_util_square ()
void ags_synth_util_impulse ()

Includes

#include <ags/audio/ags_synth_util.h>

Description

Utility functions to compute synths.

Functions

ags_synth_util_get_xcross_count_s8 ()

guint
ags_synth_util_get_xcross_count_s8 (gint8 *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: 3.0.0


ags_synth_util_get_xcross_count_s16 ()

guint
ags_synth_util_get_xcross_count_s16 (gint16 *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: 3.0.0


ags_synth_util_get_xcross_count_s24 ()

guint
ags_synth_util_get_xcross_count_s24 (gint32 *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: 3.0.0


ags_synth_util_get_xcross_count_s32 ()

guint
ags_synth_util_get_xcross_count_s32 (gint32 *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: 3.0.0


ags_synth_util_get_xcross_count_s64 ()

guint
ags_synth_util_get_xcross_count_s64 (gint64 *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: 3.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: 3.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: 3.0.0


ags_synth_util_get_xcross_count_complex ()

guint
ags_synth_util_get_xcross_count_complex
                               (AgsComplex *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: 3.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: 3.0.0


ags_synth_util_sin_s8 ()

void
ags_synth_util_sin_s8 (gint8 *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: 3.0.0


ags_synth_util_sin_s16 ()

void
ags_synth_util_sin_s16 (gint16 *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: 3.0.0


ags_synth_util_sin_s24 ()

void
ags_synth_util_sin_s24 (gint32 *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: 3.0.0


ags_synth_util_sin_s32 ()

void
ags_synth_util_sin_s32 (gint32 *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: 3.0.0


ags_synth_util_sin_s64 ()

void
ags_synth_util_sin_s64 (gint64 *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: 3.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: 3.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: 3.0.0


ags_synth_util_sin_complex ()

void
ags_synth_util_sin_complex (AgsComplex *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: 3.0.0


ags_synth_util_sawtooth_s8 ()

void
ags_synth_util_sawtooth_s8 (gint8 *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: 3.0.0


ags_synth_util_sawtooth_s16 ()

void
ags_synth_util_sawtooth_s16 (gint16 *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: 3.0.0


ags_synth_util_sawtooth_s24 ()

void
ags_synth_util_sawtooth_s24 (gint32 *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: 3.0.0


ags_synth_util_sawtooth_s32 ()

void
ags_synth_util_sawtooth_s32 (gint32 *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: 3.0.0


ags_synth_util_sawtooth_s64 ()

void
ags_synth_util_sawtooth_s64 (gint64 *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: 3.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: 3.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: 3.0.0


ags_synth_util_sawtooth_complex ()

void
ags_synth_util_sawtooth_complex (AgsComplex *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: 3.0.0


ags_synth_util_triangle_s8 ()

void
ags_synth_util_triangle_s8 (gint8 *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: 3.0.0


ags_synth_util_triangle_s16 ()

void
ags_synth_util_triangle_s16 (gint16 *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: 3.0.0


ags_synth_util_triangle_s24 ()

void
ags_synth_util_triangle_s24 (gint32 *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: 3.0.0


ags_synth_util_triangle_s32 ()

void
ags_synth_util_triangle_s32 (gint32 *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: 3.0.0


ags_synth_util_triangle_s64 ()

void
ags_synth_util_triangle_s64 (gint64 *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: 3.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: 3.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: 3.0.0


ags_synth_util_triangle_complex ()

void
ags_synth_util_triangle_complex (AgsComplex *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: 3.0.0


ags_synth_util_square_s8 ()

void
ags_synth_util_square_s8 (gint8 *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: 3.0.0


ags_synth_util_square_s16 ()

void
ags_synth_util_square_s16 (gint16 *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: 3.0.0


ags_synth_util_square_s24 ()

void
ags_synth_util_square_s24 (gint32 *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: 3.0.0


ags_synth_util_square_s32 ()

void
ags_synth_util_square_s32 (gint32 *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: 3.0.0


ags_synth_util_square_s64 ()

void
ags_synth_util_square_s64 (gint64 *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: 3.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: 3.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: 3.0.0


ags_synth_util_square_complex ()

void
ags_synth_util_square_complex (AgsComplex *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: 3.0.0


ags_synth_util_impulse_s8 ()

void
ags_synth_util_impulse_s8 (gint8 *buffer,
                           gdouble freq,
                           gdouble phase,
                           gdouble volume,
                           guint samplerate,
                           guint offset,
                           guint n_frames);

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.0.0


ags_synth_util_impulse_s16 ()

void
ags_synth_util_impulse_s16 (gint16 *buffer,
                            gdouble freq,
                            gdouble phase,
                            gdouble volume,
                            guint samplerate,
                            guint offset,
                            guint n_frames);

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.0.0


ags_synth_util_impulse_s24 ()

void
ags_synth_util_impulse_s24 (gint32 *buffer,
                            gdouble freq,
                            gdouble phase,
                            gdouble volume,
                            guint samplerate,
                            guint offset,
                            guint n_frames);

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.0.0


ags_synth_util_impulse_s32 ()

void
ags_synth_util_impulse_s32 (gint32 *buffer,
                            gdouble freq,
                            gdouble phase,
                            gdouble volume,
                            guint samplerate,
                            guint offset,
                            guint n_frames);

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.0.0


ags_synth_util_impulse_s64 ()

void
ags_synth_util_impulse_s64 (gint64 *buffer,
                            gdouble freq,
                            gdouble phase,
                            gdouble volume,
                            guint samplerate,
                            guint offset,
                            guint n_frames);

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.0.0


ags_synth_util_impulse_float ()

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

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.0.0


ags_synth_util_impulse_double ()

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

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.0.0


ags_synth_util_impulse_complex ()

void
ags_synth_util_impulse_complex (AgsComplex *buffer,
                                gdouble freq,
                                gdouble phase,
                                gdouble volume,
                                guint samplerate,
                                guint offset,
                                guint n_frames);

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.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: 3.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: 3.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: 3.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: 3.0.0


ags_synth_util_impulse ()

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

Generate impulse wave.

Parameters

buffer

the audio buffer

 

freq

the frequency of the impulse wave

 

phase

the phase of the impulse wave

 

volume

the volume of the impulse wave

 

samplerate

the samplerate

 

audio_buffer_util_format

the audio data format

 

offset

start frame

 

n_frames

generate n frames

 

Since: 3.0.0