AgsCropNote

AgsCropNote — crop notation

Functions

Properties

gboolean absolute Read / Write
gboolean do-resize Read / Write
gboolean in-place Read / Write
AgsNotation * notation Read / Write
gpointer selection Read / Write
gint x-crop Read / Write
guint x-padding Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsCropNote

Implemented Interfaces

AgsCropNote implements AgsConnectable.

Includes

#include <ags/audio/task/ags_crop_note.h>

Description

The AgsCropNote task crops AgsNotation.

Functions

ags_crop_note_new ()

AgsCropNote *
ags_crop_note_new (AgsNotation *notation,
                   GList *selection,
                   guint x_padding,
                   gint x_crop,
                   gboolean absolute,
                   gboolean in_place,
                   gboolean do_resize);

Creates an AgsCropNote task. Note either in_place or do_resize shall be TRUE else it won't have any effect.

Parameters

notation

the AgsNotation

 

selection

the selection as GList

 

x_padding

the x padding to use

 

x_crop

the amout to crop

 

absolute

if TRUE from absolute position, otherwise relative

 

in_place

if TRUE crop in place, otherwise grow relative offset

 

do_resize

if TRUE resize notation, otherwise not

 

Returns

a new AgsCropNote

Since: 1.0.0


AGS_CROP_NOTE()

#define AGS_CROP_NOTE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CROP_NOTE, AgsCropNote))

AGS_CROP_NOTE_CLASS()

#define AGS_CROP_NOTE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CROP_NOTE, AgsCropNoteClass))

AGS_CROP_NOTE_GET_CLASS()

#define AGS_CROP_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CROP_NOTE, AgsCropNoteClass))

AGS_IS_CROP_NOTE()

#define AGS_IS_CROP_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CROP_NOTE))

ags_crop_note_get_type ()

GType
ags_crop_note_get_type ();

Types and Values

AGS_CROP_NOTE_DEFAULT_X_LENGTH

#define AGS_CROP_NOTE_DEFAULT_X_LENGTH (16 * 16 * 1200)

AGS_TYPE_CROP_NOTE

#define AGS_TYPE_CROP_NOTE                (ags_crop_note_get_type())

struct AgsCropNote

struct AgsCropNote;

struct AgsCropNoteClass

struct AgsCropNoteClass {
  AgsTaskClass task;
};

Property Details

The “absolute” property

  “absolute”                 gboolean

Crop notation by absolute position.

Flags: Read / Write

Default value: FALSE

Since: 1.0.0


The “do-resize” property

  “do-resize”                gboolean

Crop notation do resize.

Flags: Read / Write

Default value: FALSE

Since: 1.0.0


The “in-place” property

  “in-place”                 gboolean

Crop notation in place.

Flags: Read / Write

Default value: FALSE

Since: 1.0.0


The “notation” property

  “notation”                 AgsNotation *

The assigned AgsNotation

Flags: Read / Write

Since: 1.0.0


The “selection” property

  “selection”                gpointer

The assigned AgsNote

Flags: Read / Write

Since: 1.0.0


The “x-crop” property

  “x-crop”                   gint

Crop notation by x-crop amount.

Flags: Read / Write

Allowed values: [-307200,307200]

Default value: 0

Since: 1.0.0


The “x-padding” property

  “x-padding”                guint

Crop notation with x padding.

Flags: Read / Write

Allowed values: <= 307200

Default value: 0

Since: 1.0.0