AgsTempo

AgsTempo — A tempo widget

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Includes

#include <ags/widget/ags_tempo.h>

Description

AgsTempo is a widget that shows you a meter.

Functions

ags_tempo_set_control_name ()

void
ags_tempo_set_control_name (AgsTempo *tempo,
                            gchar *control_name);

Set control_name of tempo .

Parameters

tempo

the AgsTempo

 

control_name

the tempo height

 

Since: 3.2.2


ags_tempo_get_control_name ()

gchar *
ags_tempo_get_control_name (AgsTempo *tempo);

Get tempo height of tempo .

Parameters

tempo

the AgsTempo

 

Returns

the tempo height

Since: 3.2.2


ags_tempo_set_upper ()

void
ags_tempo_set_upper (AgsTempo *tempo,
                     gdouble upper);

Set upper of tempo .

Parameters

tempo

the AgsTempo

 

upper

the upper

 

Since: 3.2.2


ags_tempo_get_upper ()

gdouble
ags_tempo_get_upper (AgsTempo *tempo);

Get upper of tempo .

Parameters

tempo

the AgsTempo

 

Returns

the upper

Since: 3.2.2


ags_tempo_set_lower ()

void
ags_tempo_set_lower (AgsTempo *tempo,
                     gdouble lower);

Set lower of tempo .

Parameters

tempo

the AgsTempo

 

lower

the lower

 

Since: 3.2.2


ags_tempo_get_lower ()

gdouble
ags_tempo_get_lower (AgsTempo *tempo);

Get lower of tempo .

Parameters

tempo

the AgsTempo

 

Returns

the lower

Since: 3.2.2


ags_tempo_set_default_value ()

void
ags_tempo_set_default_value (AgsTempo *tempo,
                             gdouble default_value);

Set default_value of tempo .

Parameters

tempo

the AgsTempo

 

default_value

the normalized volume

 

Since: 3.2.2


ags_tempo_get_default_value ()

gdouble
ags_tempo_get_default_value (AgsTempo *tempo);

Get normalized volume of tempo .

Parameters

tempo

the AgsTempo

 

Returns

the normalized volume

Since: 3.2.2


ags_tempo_value_changed ()

void
ags_tempo_value_changed (AgsTempo *tempo,
                         gdouble default_value);

Emits ::value-changed event.

Parameters

tempo

the AgsTempo

 

default_value

the default value

 

Since: 5.1.0


ags_tempo_new ()

AgsTempo *
ags_tempo_new (GtkOrientation orientation,
               guint width_request,
               guint height_request);

Create a new instance of AgsTempo.

Parameters

orientation

the GtkOrientation

 

width_request

the tempo's width

 

height_request

the tempo's height

 

Returns

the new AgsTempo instance

Since: 5.1.0

Types and Values

AGS_TEMPO_DEFAULT_WIDTH_REQUEST

#define AGS_TEMPO_DEFAULT_WIDTH_REQUEST (60)

AGS_TEMPO_DEFAULT_HEIGHT_REQUEST

#define AGS_TEMPO_DEFAULT_HEIGHT_REQUEST (128)

AGS_TEMPO_DEFAULT_CONTROL_NAME

#define AGS_TEMPO_DEFAULT_CONTROL_NAME "tempo [BPM]"

AGS_TEMPO_DEFAULT_LOWER

#define AGS_TEMPO_DEFAULT_LOWER (0.0)

AGS_TEMPO_DEFAULT_UPPER

#define AGS_TEMPO_DEFAULT_UPPER (240.0)

AGS_TEMPO_DEFAULT_VALUE

#define AGS_TEMPO_DEFAULT_VALUE (120.0)

AGS_TEMPO_DEFAULT_STEP_COUNT

#define AGS_TEMPO_DEFAULT_STEP_COUNT (240.0)

AGS_TEMPO_DEFAULT_PAGE_SIZE

#define AGS_TEMPO_DEFAULT_PAGE_SIZE (8.0)

enum AgsTempoButtonState

Members

AGS_TEMPO_BUTTON_1_PRESSED

   

enum AgsTempoKeyMask

Members

AGS_TEMPO_KEY_L_CONTROL

   

AGS_TEMPO_KEY_R_CONTROL

   

AGS_TEMPO_KEY_L_SHIFT

   

AGS_TEMPO_KEY_R_SHIFT

   

enum AgsTempoLayout

Members

AGS_TEMPO_LAYOUT_VERTICAL

   

AGS_TEMPO_LAYOUT_HORIZONTAL

   

enum AgsTempoAction

Members

AGS_TEMPO_STEP_UP

   

AGS_TEMPO_STEP_DOWN

   

AGS_TEMPO_PAGE_UP

   

AGS_TEMPO_PAGE_DOWN