AgsSynthGenerator

AgsSynthGenerator — generate wave-form

Functions

Properties

guint attack Read / Write
guint buffer-size Read / Write
gdouble delay Read / Write
guint format Read / Write
guint frame-count Read / Write
gdouble frequency 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 volume Read / Write

Types and Values

Object Hierarchy

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

Implemented Interfaces

AgsSynthGenerator implements AgsPlugin.

Includes

#include <ags/file/ags_synth_generator.h>

Description

The AgsSynthGenerator generates wave-forms with oscillators.

Functions

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


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


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


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

 

Returns

an AgsAudioSignal applied specified synth to stream

Since: 2.0.0


ags_synth_generator_new ()

AgsSynthGenerator *
ags_synth_generator_new ();

Creates an AgsSynthGenerator

Returns

a new AgsSynthGenerator

Since: 2.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

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_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.

Flags: Read / Write

Default value: 0

Since: 2.0.0


The “buffer-size” property

  “buffer-size”              guint

The buffer size to be used.

Flags: Read / Write

Default value: 0

Since: 2.0.0


The “delay” property

  “delay”                    gdouble

The delay to be used.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0


The “format” property

  “format”                   guint

The format to be used.

Flags: Read / Write

Default value: 0

Since: 2.0.0


The “frame-count” property

  “frame-count”              guint

The frame count to be used.

Flags: Read / Write

Default value: 0

Since: 2.0.0


The “frequency” property

  “frequency”                gdouble

The frequency to be used.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0


The “loop-end” property

  “loop-end”                 guint

The loop end to be used.

Flags: Read / Write

Default value: 0

Since: 2.1.23


The “loop-start” property

  “loop-start”               guint

The loop start to be used.

Flags: Read / Write

Default value: 0

Since: 2.1.23


The “oscillator” property

  “oscillator”               guint

The oscillator to be used.

Flags: Read / Write

Default value: 0

Since: 2.0.0


The “phase” property

  “phase”                    gdouble

The phase to be used.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0


The “samplerate” property

  “samplerate”               guint

The samplerate to be used.

Flags: Read / Write

Default value: 0

Since: 2.0.0


The “timestamp” property

  “timestamp”                GObject *

The assigned timestamp.

Flags: Read / Write

Since: 2.0.0


The “volume” property

  “volume”                   gdouble

The volume to be used.

Flags: Read / Write

Allowed values: [0,2]

Default value: 0