AgsNotationEditor

AgsNotationEditor — A composite widget to edit notation

Stability Level

Stable, unless otherwise indicated

Functions

Properties

GObject * soundcard Read / Write

Signals

void machine-changed Run Last

Types and Values

Object Hierarchy

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

Includes

#include <ags/app/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

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

   

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