AgsNote

AgsNote — Note class.

Synopsis

#include <ags/audio/ags_note.h>

struct              AgsNote;
struct              AgsNoteClass;
enum                AgsNoteFlags;
AgsNote *           ags_note_duplicate                  (AgsNote *note);
AgsNote *           ags_note_new                        ();

Description

AgsNote represents a tone.

Details

struct AgsNote

struct AgsNote {
  GObject object;

  guint flags;

  // gui format, convert easy to visualization
  guint x[2];
  guint y;

  gchar *name;
  gdouble frequency;
};

struct AgsNoteClass

struct AgsNoteClass {
  GObjectClass object;
};

enum AgsNoteFlags

typedef enum {
  AGS_NOTE_GUI             =  1,
  AGS_NOTE_RUNTIME         =  1 <<  1,
  AGS_NOTE_HUMAN_READABLE  =  1 <<  2,
  AGS_NOTE_DEFAULT_LENGTH  =  1 <<  3,
  AGS_NOTE_IS_SELECTED     =  1 <<  4,
} AgsNoteFlags;

ags_note_duplicate ()

AgsNote *           ags_note_duplicate                  (AgsNote *note);

Duplicate a note.

note :

an AgsNote

Returns :

the duplicated AgsNote.

Since 0.4


ags_note_new ()

AgsNote *           ags_note_new                        ();

Creates an AgsNote

Returns :

a new AgsNote

Since 0.4