AgsApplySynth

AgsApplySynth — apply synth to channel

Functions

Properties

guint attack Read / Write
gdouble base-note Read / Write
guint count Read / Write
gboolean do-sync Read / Write
gboolean fixed-length Read / Write
guint frame-count Read / Write
gdouble frequency Read / Write
guint loop-end Read / Write
guint loop-start Read / Write
gdouble phase Read / Write
AgsChannel * start-channel Read / Write
gdouble start-frequency Read / Write
guint sync-mode Read / Write
gdouble volume Read / Write
guint wave Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsApplySynth

Implemented Interfaces

AgsApplySynth implements AgsConnectable.

Includes

#include <ags/audio/task/ags_apply_synth.h>

Description

The AgsApplySynth task apply the specified synth to channel.

Functions

ags_apply_synth_new ()

AgsApplySynth *
ags_apply_synth_new (AgsChannel *start_channel,
                     guint count,
                     guint wave,
                     guint attack,
                     guint frame_count,
                     gdouble frequency,
                     gdouble phase,
                     gdouble start_frequency,
                     gdouble volume,
                     guint loop_start,
                     guint loop_end);

Creates an AgsApplySynth.

Parameters

start_channel

the start channel

 

count

the count of lines

 

wave

the selected wave

 

attack

the attack

 

frame_count

frame count

 

frequency

frequency

 

phase

the phase

 

start_frequency

base frequency

 

volume

volume

 

loop_start

loop start

 

loop_end

loop end

 

Returns

an new AgsApplySynth.

Since: 1.0.0


AGS_APPLY_SYNTH()

#define AGS_APPLY_SYNTH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_SYNTH, AgsApplySynth))

AGS_APPLY_SYNTH_CLASS()

#define AGS_APPLY_SYNTH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_SYNTH, AgsApplySynthClass))

AGS_APPLY_SYNTH_GET_CLASS()

#define AGS_APPLY_SYNTH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_SYNTH, AgsApplySynthClass))

AGS_IS_APPLY_SYNTH()

#define AGS_IS_APPLY_SYNTH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_SYNTH))

ags_apply_synth_get_type ()

GType
ags_apply_synth_get_type ();

Types and Values

enum AgsApplySynthWave

Specify the wave of the synth to apply

Members

AGS_APPLY_SYNTH_INVALID

invalid

 

AGS_APPLY_SYNTH_SIN

sin wave

 

AGS_APPLY_SYNTH_SAW

sawtooth wave

 

AGS_APPLY_SYNTH_SQUARE

square

 

AGS_APPLY_SYNTH_TRIANGLE

triangle wave

 

AGS_TYPE_APPLY_SYNTH

#define AGS_TYPE_APPLY_SYNTH                (ags_apply_synth_get_type())

struct AgsApplySynth

struct AgsApplySynth;

struct AgsApplySynthClass

struct AgsApplySynthClass {
  AgsTaskClass task;
};

Property Details

The “attack” property

  “attack”                   guint

The attack of audio data.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “base-note” property

  “base-note”                gdouble

The base-note to ramp up from.

Flags: Read / Write

Allowed values: [-78,78]

Default value: -48

Since: 1.0.0


The “count” property

  “count”                    guint

The count of channels to apply.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “do-sync” property

  “do-sync”                  gboolean

If do sync

Flags: Read / Write

Default value: TRUE

Since: 1.0.0


The “fixed-length” property

  “fixed-length”             gboolean

If apply fixed length

Flags: Read / Write

Default value: TRUE

Since: 1.0.0


The “frame-count” property

  “frame-count”              guint

The frame count of audio data.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “frequency” property

  “frequency”                gdouble

The frequency of wave.

Flags: Read / Write

Allowed values: >= 0

Default value: 0

Since: 1.0.0


The “loop-end” property

  “loop-end”                 guint

The loop end of audio data.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “loop-start” property

  “loop-start”               guint

The loop start of audio data.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “phase” property

  “phase”                    gdouble

The phase of wave.

Flags: Read / Write

Allowed values: >= 0

Default value: 0

Since: 1.0.0


The “start-channel” property

  “start-channel”            AgsChannel *

The assigned AgsChannel

Flags: Read / Write

Since: 1.0.0


The “start-frequency” property

  “start-frequency”          gdouble

The start frequency as base of wave.

Flags: Read / Write

Allowed values: >= 0

Default value: 0

Since: 1.0.0


The “sync-mode” property

  “sync-mode”                guint

The sync mode to use.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “volume” property

  “volume”                   gdouble

The volume of wave.

Flags: Read / Write

Allowed values: >= 0

Default value: 0

Since: 1.0.0


The “wave” property

  “wave”                     guint

The wave of wave.

Flags: Read / Write

Default value: 0

Since: 1.0.0