AgsSynthGenerator

AgsSynthGenerator — generate wave-form

Functions

Properties

guint buffer-size Read / Write
guint format Read / Write
gdouble frequency Read / Write
guint n-frames 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_new ()

AgsSynthGenerator *
ags_synth_generator_new ();

Creates an AgsSynthGenerator

Returns

a new AgsSynthGenerator

Since: 0.7.45


AGS_IS_SYNTH_GENERATOR()

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


AGS_IS_SYNTH_GENERATOR_CLASS()

#define AGS_IS_SYNTH_GENERATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), 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

Members

AGS_SYNTH_GENERATOR_OSCILLATOR_SIN

   

AGS_SYNTH_GENERATOR_OSCILLATOR_SAWTOOTH

   

AGS_SYNTH_GENERATOR_OSCILLATOR_TRIANGLE

   

AGS_SYNTH_GENERATOR_OSCILLATOR_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 “buffer-size” property

  “buffer-size”              guint

The buffer size to be used.

Flags: Read / Write

Default value: 0

Since: 0.7.45


The “format” property

  “format”                   guint

The format to be used.

Flags: Read / Write

Default value: 0

Since: 0.7.45


The “frequency” property

  “frequency”                gdouble

The frequency to be used.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0


The “n-frames” property

  “n-frames”                 guint

The n-frames to be used.

Flags: Read / Write

Default value: 0

Since: 0.7.45


The “oscillator” property

  “oscillator”               guint

The oscillator to be used.

Flags: Read / Write

Default value: 0

Since: 0.7.45


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


The “timestamp” property

  “timestamp”                GObject *

The assigned timestamp.

Flags: Read / Write

Since: 0.7.45


The “volume” property

  “volume”                   gdouble

The volume to be used.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0