AgsApplySynth

AgsApplySynth — apply synth to channel

Synopsis

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

struct              AgsApplySynth;
struct              AgsApplySynthClass;
enum                AgsApplySynthWave;
AgsApplySynth *     ags_apply_synth_new                 (AgsChannel *start_channel,
                                                         guint count,
                                                         guint wave,
                                                         guint attack,
                                                         guint frame_count,
                                                         guint frequency,
                                                         guint phase,
                                                         guint start,
                                                         gdouble volume,
                                                         guint loop_start,
                                                         guint loop_end);

Description

The AgsApplySynth task apply the specified synth to channel.

Details

struct AgsApplySynth

struct AgsApplySynth {
  AgsTask task;

  AgsChannel *start_channel;
  guint count;

  guint wave;

  guint attack;
  guint frame_count;
  guint frequency;
  guint phase;
  guint start;

  gdouble volume;

  guint loop_start;
  guint loop_end;
};

struct AgsApplySynthClass

struct AgsApplySynthClass {
  AgsTaskClass task;
};

enum AgsApplySynthWave

typedef enum {
  AGS_APPLY_SYNTH_INVALID,
  AGS_APPLY_SYNTH_SIN,
  AGS_APPLY_SYNTH_SAW,
  AGS_APPLY_SYNTH_SQUARE,
  AGS_APPLY_SYNTH_TRIANGLE,
} AgsApplySynthWave;

ags_apply_synth_new ()

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

Creates an AgsApplySynth.

Returns :

an new AgsApplySynth.

Since 0.4