AgsDrum

AgsDrum — drum sequencer

Synopsis

#include <ags/X/machine/ags_drum.h>

#define             AGS_DRUM_PATTERN_CONTROLS
struct              AgsDrum;
struct              AgsDrumClass;
enum                AgsDrumFlags;
AgsDrum *           ags_drum_new                        (GObject *devout);
void                ags_drum_set_pattern                (AgsDrum *drum);

Description

The AgsDrum is a composite widget to act as drum sequencer.

Details

AGS_DRUM_PATTERN_CONTROLS

#define AGS_DRUM_PATTERN_CONTROLS (16)

struct AgsDrum

struct AgsDrum {
  AgsMachine machine;

  guint flags;

  gchar *name;
  gchar *xml_type;

  GtkButton *open;

  GtkCheckButton *loop_button;
  GtkSpinButton *length_spin;

  GtkToggleButton *run;

  GtkVBox *vbox;

  GtkHBox *input_pad;
  GtkVBox *output_pad;

  GtkToggleButton *selected_edit_button;

  AgsDrumInputPad *selected_pad;
  AgsLine *selected_line;

  GtkToggleButton *index0[4];
  GtkToggleButton *selected0;

  GtkToggleButton *index1[12];
  GtkToggleButton *selected1;

  guint active_led;
  GtkHBox *led;
  GtkHBox *pattern;

  GtkVBox *offset;
};

struct AgsDrumClass

struct AgsDrumClass {
  AgsMachineClass machine;
};

enum AgsDrumFlags

typedef enum {
  AGS_DRUM_BLOCK_PATTERN    =  1,
} AgsDrumFlags;

ags_drum_new ()

AgsDrum *           ags_drum_new                        (GObject *devout);

Creates an AgsDrum

devout :

the assigned devout.

Returns :

a new AgsDrum

Since 0.3


ags_drum_set_pattern ()

void                ags_drum_set_pattern                (AgsDrum *drum);