AgsNotationEditor

AgsNotationEditor — A composite widget to edit notation

Functions

Properties

GObject * soundcard Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBox
                    ╰── GtkVBox
                        ╰── AgsNotationEditor

Implemented Interfaces

AgsNotationEditor implements AtkImplementorIface, GtkBuildable, GtkOrientable and AgsConnectable.

Includes

#include <ags/X/ags_notation_editor.h>

Description

AgsNotationEditor is a composite widget to edit notation. You may select machines or change editor tool to do notation.

Functions

ags_notation_editor_machine_changed ()

void
ags_notation_editor_machine_changed (AgsNotationEditor *notation_editor,
                                     AgsMachine *machine);

Is emitted as machine changed of notation_editor.

Parameters

notation_editor

the AgsNotationEditor

 

machine

the new AgsMachine

 

Since: 3.0.0


ags_notation_editor_add_note ()

void
ags_notation_editor_add_note (AgsNotationEditor *notation_editor,
                              AgsNote *note);

Add note.

Parameters

notation_editor

the AgsNotationEditor

 

note

the AgsNote to add

 

Since: 3.0.0


ags_notation_editor_delete_note ()

void
ags_notation_editor_delete_note (AgsNotationEditor *notation_editor,
                                 guint x,
                                 guint y);

Delete note.

Parameters

notation_editor

the AgsNotationEditor

 

x

point x

 

y

point y

 

Since: 3.0.0


ags_notation_editor_select_region ()

void
ags_notation_editor_select_region (AgsNotationEditor *notation_editor,
                                   guint x0,
                                   guint y0,
                                   guint x1,
                                   guint y1);

Select region.

Parameters

notation_editor

the AgsNotationEditor

 

x0

point x0

 

y0

point y0

 

x1

point x1

 

y1

point y1

 

Since: 3.0.0


ags_notation_editor_do_feedback ()

void
ags_notation_editor_do_feedback (AgsNotationEditor *notation_editor);

Do playback feedback.

Parameters

notation_editor

the AgsNotationEditor

 

Since: 3.0.0


ags_notation_editor_start_play_key ()

void
ags_notation_editor_start_play_key (AgsNotationEditor *notation_editor,
                                    gint key_code);

Start play key_code .

Parameters

notation_editor

the AgsNotationEditor

 

key_code

the key to play

 

Since: 3.0.0


ags_notation_editor_stop_play_key ()

void
ags_notation_editor_stop_play_key (AgsNotationEditor *notation_editor,
                                   gint key_code);

Stop play key_code .

Parameters

notation_editor

the AgsNotationEditor

 

key_code

the key to stop

 

Since: 3.0.0


ags_notation_editor_select_all ()

void
ags_notation_editor_select_all (AgsNotationEditor *notation_editor);

Is emitted as machine changed of notation_editor.

Parameters

notation_editor

the AgsNotationEditor

 

Since: 3.0.0


ags_notation_editor_paste ()

void
ags_notation_editor_paste (AgsNotationEditor *notation_editor);

Is emitted as machine changed of notation_editor.

Parameters

notation_editor

the AgsNotationEditor

 

Since: 3.0.0


ags_notation_editor_copy ()

void
ags_notation_editor_copy (AgsNotationEditor *notation_editor);

Is emitted as machine changed of notation_editor.

Parameters

notation_editor

the AgsNotationEditor

 

Since: 3.0.0


ags_notation_editor_cut ()

void
ags_notation_editor_cut (AgsNotationEditor *notation_editor);

Is emitted as machine changed of notation_editor.

Parameters

notation_editor

the AgsNotationEditor

 

Since: 3.0.0


ags_notation_editor_invert ()

void
ags_notation_editor_invert (AgsNotationEditor *notation_editor);

Invert all notation of notation_editor 's selected machine.

Parameters

notation_editor

the AgsNotationEditor

 

Since: 3.0.0


ags_notation_editor_new ()

AgsNotationEditor *
ags_notation_editor_new ();

Creates the AgsNotationEditor

Returns

a new AgsNotationEditor

Since: 3.0.0


AGS_IS_NOTATION_EDITOR()

#define AGS_IS_NOTATION_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_NOTATION_EDITOR))

AGS_IS_NOTATION_EDITOR_CLASS()

#define AGS_IS_NOTATION_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_NOTATION_EDITOR))

AGS_NOTATION_EDITOR()

#define AGS_NOTATION_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTATION_EDITOR, AgsNotationEditor))

AGS_NOTATION_EDITOR_CLASS()

#define AGS_NOTATION_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTATION_EDITOR, AgsNotationEditorClass))

AGS_NOTATION_EDITOR_GET_CLASS()

#define AGS_NOTATION_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_NOTATION_EDITOR, AgsNotationEditorClass))

ags_notation_editor_get_type ()

GType
ags_notation_editor_get_type (void);

Types and Values

AGS_NOTATION_EDITOR_DEFAULT_VERSION

#define AGS_NOTATION_EDITOR_DEFAULT_VERSION "1.2.0"

AGS_NOTATION_EDITOR_DEFAULT_BUILD_ID

#define AGS_NOTATION_EDITOR_DEFAULT_BUILD_ID "Mon Nov 27 08:23:16 UTC 2017"

AGS_NOTATION_EDITOR_MAX_CONTROLS

#define AGS_NOTATION_EDITOR_MAX_CONTROLS (16 * 16 * 1200)

enum AgsNotationEditorFlags

Members

AGS_NOTATION_EDITOR_CONNECTED

   

AGS_NOTATION_EDITOR_PATTERN_MODE

   

AGS_NOTATION_EDITOR_PASTE_MATCH_AUDIO_CHANNEL

   

AGS_NOTATION_EDITOR_PASTE_NO_DUPLICATES

   

AGS_TYPE_NOTATION_EDITOR

#define AGS_TYPE_NOTATION_EDITOR                (ags_notation_editor_get_type ())

struct AgsNotationEditor

struct AgsNotationEditor;

struct AgsNotationEditorClass

struct AgsNotationEditorClass {
  GtkVBoxClass vbox;

  void (*machine_changed)(AgsNotationEditor *notation_editor, AgsMachine *machine);
};

Property Details

The “soundcard” property

  “soundcard”                GObject *

The assigned AgsSoundcard acting as default sink.

Owner: AgsNotationEditor

Flags: Read / Write

Since: 3.0.0

Signal Details

The “machine-changed” signal

void
user_function (AgsNotationEditor *editor,
               GObject           *machine,
               gpointer           user_data)

The ::machine-changed signal notifies about changed machine.

Parameters

editor

the object to change machine.

 

machine

the AgsMachine to set

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 3.0.0