AgsWaveEdit

AgsWaveEdit — edit audio data

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Includes

#include <ags/app/editor/ags_wave_edit.h>

Description

The AgsWaveEdit lets you edit audio data.

Functions

ags_wave_edit_reset_vscrollbar ()

void
ags_wave_edit_reset_vscrollbar (AgsWaveEdit *wave_edit);

ags_wave_edit_reset_hscrollbar ()

void
ags_wave_edit_reset_hscrollbar (AgsWaveEdit *wave_edit);

ags_wave_edit_draw_segment ()

void
ags_wave_edit_draw_segment (AgsWaveEdit *wave_edit,
                            cairo_t *cr);

ags_wave_edit_draw_position ()

void
ags_wave_edit_draw_position (AgsWaveEdit *wave_edit,
                             cairo_t *cr);

ags_wave_edit_draw_cursor ()

void
ags_wave_edit_draw_cursor (AgsWaveEdit *wave_edit,
                           cairo_t *cr);

ags_wave_edit_draw_selection ()

void
ags_wave_edit_draw_selection (AgsWaveEdit *wave_edit,
                              cairo_t *cr);

ags_wave_edit_draw_buffer ()

void
ags_wave_edit_draw_buffer (AgsWaveEdit *wave_edit,
                           AgsBuffer *buffer,
                           cairo_t *cr,
                           gdouble bpm,
                           gdouble opacity);

ags_wave_edit_draw_wave ()

void
ags_wave_edit_draw_wave (AgsWaveEdit *wave_edit,
                         cairo_t *cr);

ags_wave_edit_draw ()

void
ags_wave_edit_draw (AgsWaveEdit *wave_edit,
                    cairo_t *cr);

ags_wave_edit_new ()

AgsWaveEdit *
ags_wave_edit_new (guint line);

Create a new instance of AgsWaveEdit.

Parameters

line

the line

 

Returns

the new AgsWaveEdit

Since: 3.0.0

Types and Values

AGS_WAVE_EDIT_DEFAULT_HEIGHT

#define AGS_WAVE_EDIT_DEFAULT_HEIGHT (512)

AGS_WAVE_EDIT_DEFAULT_WIDTH

#define AGS_WAVE_EDIT_DEFAULT_WIDTH (512)

AGS_WAVE_EDIT_DEFAULT_CONTROL_WIDTH

#define AGS_WAVE_EDIT_DEFAULT_CONTROL_WIDTH (64)

AGS_WAVE_EDIT_DEFAULT_CONTROL_HEIGHT

#define AGS_WAVE_EDIT_DEFAULT_CONTROL_HEIGHT (8)

AGS_WAVE_EDIT_DEFAULT_STEP_COUNT

#define AGS_WAVE_EDIT_DEFAULT_STEP_COUNT (16)

AGS_WAVE_EDIT_DEFAULT_CURSOR_POSITION_X

#define AGS_WAVE_EDIT_DEFAULT_CURSOR_POSITION_X (0)

AGS_WAVE_EDIT_DEFAULT_CURSOR_POSITION_Y

#define AGS_WAVE_EDIT_DEFAULT_CURSOR_POSITION_Y (0.0)

AGS_WAVE_EDIT_DEFAULT_SELECTED_BUFFER_BORDER

#define AGS_WAVE_EDIT_DEFAULT_SELECTED_BUFFER_BORDER (2)

AGS_WAVE_EDIT_DEFAULT_FADER_WIDTH

#define AGS_WAVE_EDIT_DEFAULT_FADER_WIDTH (3)

AGS_WAVE_EDIT_CURSOR_WIDTH

#define AGS_WAVE_EDIT_CURSOR_WIDTH (5)

AGS_WAVE_EDIT_CURSOR_HEIGHT

#define AGS_WAVE_EDIT_CURSOR_HEIGHT (5)

AGS_WAVE_EDIT_MIN_ZOOM

#define AGS_WAVE_EDIT_MIN_ZOOM (1.0 / 16.0)

AGS_WAVE_EDIT_MAX_ZOOM

#define AGS_WAVE_EDIT_MAX_ZOOM (4.0)

AGS_WAVE_EDIT_DEFAULT_LOWER

#define AGS_WAVE_EDIT_DEFAULT_LOWER (0.0)

AGS_WAVE_EDIT_DEFAULT_UPPER

#define AGS_WAVE_EDIT_DEFAULT_UPPER (1.0)

AGS_WAVE_EDIT_DEFAULT_VALUE

#define AGS_WAVE_EDIT_DEFAULT_VALUE (0.0)

AGS_WAVE_EDIT_DEFAULT_PADDING

#define AGS_WAVE_EDIT_DEFAULT_PADDING (8)

AGS_WAVE_EDIT_X_RESOLUTION

#define AGS_WAVE_EDIT_X_RESOLUTION (16.0 * 64.0)

enum AgsWaveEditFlags

Members

AGS_WAVE_EDIT_AUTO_SCROLL

   

AGS_WAVE_EDIT_SHOW_RULER

   

AGS_WAVE_EDIT_SHOW_VSCROLLBAR

   

AGS_WAVE_EDIT_SHOW_HSCROLLBAR

   

AGS_WAVE_EDIT_BLOCK_RESET_VSCROLLBAR

   

AGS_WAVE_EDIT_BLOCK_RESET_HSCROLLBAR

   

enum AgsWaveEditMode

Members

AGS_WAVE_EDIT_NO_EDIT_MODE

   

AGS_WAVE_EDIT_POSITION_CURSOR

   

AGS_WAVE_EDIT_SELECT_BUFFER

   

enum AgsWaveEditButtonMask

Members

AGS_WAVE_EDIT_BUTTON_1

   

enum AgsWaveEditKeyMask

Members

AGS_WAVE_EDIT_KEY_L_CONTROL

   

AGS_WAVE_EDIT_KEY_R_CONTROL

   

AGS_WAVE_EDIT_KEY_L_SHIFT

   

AGS_WAVE_EDIT_KEY_R_SHIFT

   

AGS_WAVE_EDIT_KEY_L_META

   

AGS_WAVE_EDIT_KEY_R_META