AgsSynthGenerator

AgsSynthGenerator — generate wave-form

Functions

Properties

guint attack Read / Write
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_compute ()

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

Compute synth for note .

Parameters

synth_generator

the AgsSynthGenerator

 

note

the note to compute

 

Returns

an AgsAudioSignal applied specified synth to stream

Since: 1.0.0


ags_synth_generator_compute_with_audio_signal ()

void
ags_synth_generator_compute_with_audio_signal
                               (AgsSynthGenerator *synth_generator,
                                GObject *audio_signal,
                                gdouble note,
                                AgsComplex *sync_start,
                                AgsComplex *sync_end,
                                guint compute_flags);

Compute synth for note for audio_signal .

Parameters

synth_generator

the AgsSynthGenerator

 

audio_signal

the AgsAudioSignal

 

note

the note to compute

 

sync_start

not used for now

 

sync_end

not used for now

 

compute_flags

computation flags

 

Since: 1.0.0


ags_synth_generator_new ()

AgsSynthGenerator *
ags_synth_generator_new ();

Creates an AgsSynthGenerator

Returns

a new AgsSynthGenerator

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

 

enum AgsSynthGeneratorComputeFlags

Enum values to specify compute flags.

Members

AGS_SYNTH_GENERATOR_COMPUTE_FIXED_LENGTH

fixed length

 

AGS_SYNTH_GENERATOR_COMPUTE_SYNC

sync

 

AGS_SYNTH_GENERATOR_COMPUTE_16HZ

16 Hz

 

AGS_SYNTH_GENERATOR_COMPUTE_440HZ

440 Hz

 

AGS_SYNTH_GENERATOR_COMPUTE_22000HZ

22000 Hz

 

AGS_SYNTH_GENERATOR_COMPUTE_LIMIT

limit

 

AGS_SYNTH_GENERATOR_COMPUTE_NOHZ

no Hertz

 

AGS_SYNTH_GENERATOR_COMPUTE_FREQUENCY

frequency

 

AGS_SYNTH_GENERATOR_COMPUTE_NOTE

note

 

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


The “buffer-size” property

  “buffer-size”              guint

The buffer size to be used.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “format” property

  “format”                   guint

The format to be used.

Flags: Read / Write

Default value: 0

Since: 1.0.0


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


The “oscillator” property

  “oscillator”               guint

The oscillator to be used.

Flags: Read / Write

Default value: 0

Since: 1.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: 1.0.0


The “timestamp” property

  “timestamp”                GObject *

The assigned timestamp.

Flags: Read / Write

Since: 1.0.0


The “volume” property

  “volume”                   gdouble

The volume to be used.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0