AgsTactable

AgsTactable — Unique tempo set or attributes access

Functions

Signals

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsTactable

Includes

#include <ags/object/ags_tactable.h>

Description

The AgsTactable interface gives you a unique access to modify tempo.

Functions

ags_tactable_get_sequencer_duration ()

gdouble
ags_tactable_get_sequencer_duration (AgsTactable *tactable);

Get sequencer duration.

Parameters

tactable

an AgsTactable

 

Returns

the sequencer duration

Since: 1.0.0


ags_tactable_get_notation_duration ()

gdouble
ags_tactable_get_notation_duration (AgsTactable *tactable);

Get notation duration.

Parameters

tactable

an AgsTactable

 

Returns

the notation duration

Since: 1.0.0


ags_tactable_get_tact ()

gdouble
ags_tactable_get_tact (AgsTactable *tactable);

Get tact.

Parameters

tactable

an AgsTactable

 

Returns

the tact

Since: 1.0.0


ags_tactable_get_bpm ()

gdouble
ags_tactable_get_bpm (AgsTactable *tactable);

Get bpm.

Parameters

tactable

an AgsTactable

 

Returns

the bpm

Since: 1.0.0


ags_tactable_change_sequencer_duration ()

void
ags_tactable_change_sequencer_duration
                               (AgsTactable *tactable,
                                gdouble duration);

Sequencer duration changed.

Parameters

tactable

an AgsTactable

 

duration

the duration

 

Since: 1.0.0


ags_tactable_change_notation_duration ()

void
ags_tactable_change_notation_duration (AgsTactable *tactable,
                                       gdouble duration);

Notation duration changed.

Parameters

tactable

an AgsTactable

 

duration

the duration

 

Since: 1.0.0


ags_tactable_change_tact ()

void
ags_tactable_change_tact (AgsTactable *tactable,
                          gdouble new_tact,
                          gdouble old_tact);

Tact changed.

Parameters

tactable

an AgsTactable

 

new_tact

the new tact

 

old_tact

the old tact

 

Since: 1.0.0


ags_tactable_change_bpm ()

void
ags_tactable_change_bpm (AgsTactable *tactable,
                         gdouble new_bpm,
                         gdouble old_bpm);

Bpm changed.

Parameters

tactable

an AgsTactable

 

new_bpm

the new bpm

 

old_bpm

the old bpm

 

Since: 1.0.0


AGS_IS_TACTABLE()

#define AGS_IS_TACTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TACTABLE))

AGS_IS_TACTABLE_INTERFACE()

#define AGS_IS_TACTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_TACTABLE))

AGS_TACTABLE()

#define AGS_TACTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TACTABLE, AgsTactable))

AGS_TACTABLE_GET_INTERFACE()

#define AGS_TACTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_TACTABLE, AgsTactableInterface))

AGS_TACTABLE_INTERFACE()

#define AGS_TACTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_TACTABLE, AgsTactableInterface))

ags_tactable_get_type ()

GType
ags_tactable_get_type ();

Types and Values

AGS_TYPE_TACTABLE

#define AGS_TYPE_TACTABLE                    (ags_tactable_get_type())

AgsTactable

typedef struct _AgsTactable AgsTactable;

struct AgsTactableInterface

struct AgsTactableInterface {
  GTypeInterface ginterface;

  gdouble (*get_sequencer_duration)(AgsTactable *tactable);
  gdouble (*get_notation_duration)(AgsTactable *tactable);

  gdouble (*get_tact)(AgsTactable *tactable);
  gdouble (*get_bpm)(AgsTactable *tactable);
    
  void (*change_sequencer_duration)(AgsTactable *tactable, gdouble duration);
  void (*change_notation_duration)(AgsTactable *tactable, gdouble duration);

  void (*change_tact)(AgsTactable *tactable, gdouble new_tact, gdouble old_tact);
  void (*change_bpm)(AgsTactable *tactable, gdouble new_bpm, gdouble old_bpm);
};

Signal Details

The “change-bpm” signal

void
user_function (AgsTactable *tactable,
               gdouble      duration,
               gdouble      arg2,
               gpointer     user_data)

The ::change-bpm signal notifies about changed bpm.

Parameters

tactable

the AgsTactable

 

duration

new duration

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.0.0


The “change-notation-duration” signal

void
user_function (AgsTactable *tactable,
               gdouble      duration,
               gpointer     user_data)

The ::change-notation-duration signal notifies about changed duration of notation.

Parameters

tactable

the AgsTactable

 

duration

new duration

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.0.0


The “change-sequencer-duration” signal

void
user_function (AgsTactable *tactable,
               gdouble      duration,
               gpointer     user_data)

The ::change-sequencer-duration signal notifies about changed duration of sequencer.

Parameters

tactable

the AgsTactable

 

duration

new duration

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.0.0


The “change-tact” signal

void
user_function (AgsTactable *tactable,
               gdouble      tact,
               gdouble      arg2,
               gpointer     user_data)

The ::change-tact signal notifies about changed tact.

Parameters

tactable

the AgsTactable

 

tact

new tact

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.0.0