krähemann.com

AgsSynthGenerator

AgsSynthGenerator — generate wave-form

Properties

guint attack Read / Write
guint buffer-size Read / Write
gdouble delay Read / Write
gboolean do-fm-synth Read / Write
gboolean do-lfo Read / Write
gdouble fm-lfo-depth Read / Write
gdouble fm-lfo-frequency Read / Write
guint fm-lfo-oscillator Read / Write
gdouble fm-tuning Read / Write
guint format Read / Write
guint frame-count Read / Write
gdouble frequency Read / Write
gdouble lfo-depth Read / Write
guint loop-end Read / Write
guint loop-start Read / Write
guint oscillator Read / Write
gdouble phase Read / Write
guint samplerate Read / Write
GObject * timestamp Read / Write
gdouble tuning Read / Write
gdouble volume Read / Write

Object Hierarchy

    GObject
    ╰── AgsConversion
        ╰── AgsFunction
            ╰── AgsSynthGenerator

Includes

#include <ags/file/ags_synth_generator.h>

Description

The AgsSynthGenerator generates wave-forms with oscillators.

Functions

AGS_SYNTH_GENERATOR_GET_OBJ_MUTEX()

#define AGS_SYNTH_GENERATOR_GET_OBJ_MUTEX(obj) (&(((AgsSynthGenerator *) obj)->obj_mutex))

ags_synth_generator_set_samplerate ()

void
ags_synth_generator_set_samplerate (AgsSynthGenerator *synth_generator,
                                    guint samplerate);

Set samplerate.

Parameters

synth_generator

the AgsSynthGenerator

 

samplerate

the samplerate

 

Since: 3.0.0


ags_synth_generator_set_buffer_size ()

void
ags_synth_generator_set_buffer_size (AgsSynthGenerator *synth_generator,
                                     guint buffer_size);

Set buffer size.

Parameters

synth_generator

the AgsSynthGenerator

 

buffer_size

the buffer size

 

Since: 3.0.0


ags_synth_generator_set_format ()

void
ags_synth_generator_set_format (AgsSynthGenerator *synth_generator,
                                guint format);

Set format.

Parameters

synth_generator

the AgsSynthGenerator

 

format

the format

 

Since: 3.0.0


ags_synth_generator_compute ()

void
ags_synth_generator_compute (AgsSynthGenerator *synth_generator,
                             GObject *audio_signal,
                             gdouble note);

Compute synth for note .

Parameters

synth_generator

the AgsSynthGenerator

 

audio_signal

the AgsAudioSignal

 

note

the note to compute

 

Since: 3.0.0


ags_synth_generator_new ()

AgsSynthGenerator *
ags_synth_generator_new ();

Creates an AgsSynthGenerator

Returns

a new AgsSynthGenerator

Since: 3.0.0


AGS_IS_SYNTH_GENERATOR()

#define AGS_IS_SYNTH_GENERATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_GENERATOR))

AGS_SYNTH_GENERATOR()

#define AGS_SYNTH_GENERATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_GENERATOR, AgsSynthGenerator))

AGS_SYNTH_GENERATOR_CLASS()

#define AGS_SYNTH_GENERATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SYNTH_GENERATOR, AgsSynthGeneratorClass))

AGS_SYNTH_GENERATOR_GET_CLASS()

#define AGS_SYNTH_GENERATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SYNTH_GENERATOR, AgsSynthGeneratorClass))

ags_synth_generator_get_type ()

GType
ags_synth_generator_get_type ();

Types and Values

AGS_SYNTH_GENERATOR_DEFAULT_SAMPLERATE

#define AGS_SYNTH_GENERATOR_DEFAULT_SAMPLERATE ((guint) AGS_SOUNDCARD_DEFAULT_SAMPLERATE)

AGS_SYNTH_GENERATOR_DEFAULT_BUFFER_SIZE

#define AGS_SYNTH_GENERATOR_DEFAULT_BUFFER_SIZE (AGS_SOUNDCARD_DEFAULT_BUFFER_SIZE)

AGS_SYNTH_GENERATOR_DEFAULT_FORMAT

#define AGS_SYNTH_GENERATOR_DEFAULT_FORMAT (AGS_SOUNDCARD_DEFAULT_FORMAT)

AGS_SYNTH_GENERATOR_DEFAULT_OSCILLATOR

#define AGS_SYNTH_GENERATOR_DEFAULT_OSCILLATOR (AGS_SYNTH_GENERATOR_OSCILLATOR_SIN)

AGS_SYNTH_GENERATOR_DEFAULT_FREQUENCY

#define AGS_SYNTH_GENERATOR_DEFAULT_FREQUENCY (440.0)

AGS_SYNTH_GENERATOR_DEFAULT_PHASE

#define AGS_SYNTH_GENERATOR_DEFAULT_PHASE (0.0)

AGS_SYNTH_GENERATOR_DEFAULT_VOLUME

#define AGS_SYNTH_GENERATOR_DEFAULT_VOLUME (1.0)

AGS_SYNTH_GENERATOR_DEFAULT_LFO_DEPTH

#define AGS_SYNTH_GENERATOR_DEFAULT_LFO_DEPTH (1.0)

AGS_SYNTH_GENERATOR_DEFAULT_TUNING

#define AGS_SYNTH_GENERATOR_DEFAULT_TUNING (0.0)

AGS_SYNTH_GENERATOR_DEFAULT_FM_LFO_FREQUENCY

#define AGS_SYNTH_GENERATOR_DEFAULT_FM_LFO_FREQUENCY (6.0)

AGS_SYNTH_GENERATOR_DEFAULT_FM_LFO_DEPTH

#define AGS_SYNTH_GENERATOR_DEFAULT_FM_LFO_DEPTH (1.0)

AGS_SYNTH_GENERATOR_DEFAULT_FM_TUNING

#define AGS_SYNTH_GENERATOR_DEFAULT_FM_TUNING (0.0)

enum AgsSynthGeneratorOscillator

Enum values to specify oscillator.

Members

AGS_SYNTH_GENERATOR_OSCILLATOR_SIN

sinus

 

AGS_SYNTH_GENERATOR_OSCILLATOR_SAWTOOTH

sawtooth

 

AGS_SYNTH_GENERATOR_OSCILLATOR_TRIANGLE

triangle

 

AGS_SYNTH_GENERATOR_OSCILLATOR_SQUARE

square

 

AGS_SYNTH_GENERATOR_OSCILLATOR_IMPULSE

impulse

 

AGS_TYPE_SYNTH_GENERATOR

#define AGS_TYPE_SYNTH_GENERATOR                (ags_synth_generator_get_type())

struct AgsSynthGenerator

struct AgsSynthGenerator;

struct AgsSynthGeneratorClass

struct AgsSynthGeneratorClass {
  AgsFunctionClass function;
};

Property Details

The “attack” property

  “attack”                   guint

The attack to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 0

Since: 3.0.0


The “buffer-size” property

  “buffer-size”              guint

The buffer size to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 1024

Since: 3.0.0


The “delay” property

  “delay”                    gdouble

The delay to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0

Since: 3.0.0


The “do-fm-synth” property

  “do-fm-synth”              gboolean

If TRUE compute FM synth, otherwise not.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: FALSE

Since: 3.0.0


The “do-lfo” property

  “do-lfo”                   gboolean

If TRUE compute LFO amplification, otherwise not.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: FALSE

Since: 3.0.0


The “fm-lfo-depth” property

  “fm-lfo-depth”             gdouble

The fm LFO depth to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0,1]

Default value: 1


The “fm-lfo-frequency” property

  “fm-lfo-frequency”         gdouble

The fm LFO frequency to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0.001,27.5]

Default value: 6


The “fm-lfo-oscillator” property

  “fm-lfo-oscillator”        guint

The frame count to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 0

Since: 3.0.0


The “fm-tuning” property

  “fm-tuning”                gdouble

The FM tuning to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0,1200]

Default value: 0


The “format” property

  “format”                   guint

The format to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 16

Since: 3.0.0


The “frame-count” property

  “frame-count”              guint

The frame count to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 0

Since: 3.0.0


The “frequency” property

  “frequency”                gdouble

The frequency to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0,65535]

Default value: 440


The “lfo-depth” property

  “lfo-depth”                gdouble

The LFO depth to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0,1]

Default value: 1


The “loop-end” property

  “loop-end”                 guint

The loop end to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 0

Since: 3.0.0


The “loop-start” property

  “loop-start”               guint

The loop start to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 0

Since: 3.0.0


The “oscillator” property

  “oscillator”               guint

The oscillator to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 0

Since: 3.0.0


The “phase” property

  “phase”                    gdouble

The phase to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0


The “samplerate” property

  “samplerate”               guint

The samplerate to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Default value: 48000

Since: 3.0.0


The “timestamp” property

  “timestamp”                GObject *

The assigned timestamp.

Owner: AgsSynthGenerator

Flags: Read / Write

Since: 3.0.0


The “tuning” property

  “tuning”                   gdouble

The tuning to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0,1200]

Default value: 0


The “volume” property

  “volume”                   gdouble

The volume to be used.

Owner: AgsSynthGenerator

Flags: Read / Write

Allowed values: [0,2]

Default value: 1