Constructor

AgsAudioCropNotenew

since: 3.0.0

Declaration [src]

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

Description [src]

WARNING you need to provide AgsAudio as a property. Creates an AgsCropNote task. Note either in_place or do_resize shall be TRUE else it won’t have any effect.

Available since: 3.0.0

Parameters

audio

Type: AgsAudio

The AgsAudio.

The data is owned by the caller of the function.
notation

Type: AgsNotation

The AgsNotation.

The data is owned by the caller of the function.
selection

Type: A list of AgsNote*

The selection as GList-struct.

The data is owned by the caller of the function.
x_padding

Type: guint

The x padding to use.

x_crop

Type: gint

The amout to crop.

absolute

Type: gboolean

If TRUE from absolute position, otherwise relative.

in_place

Type: gboolean

If TRUE crop in place, otherwise grow relative offset.

do_resize

Type: gboolean

If TRUE resize notation, otherwise not.

Return value

Type: AgsCropNote

A new AgsCropNote.

The caller of the function takes ownership of the data, and is responsible for freeing it.