| Top |
Functions
Properties
| acceleration | Read / Write | |
| AgsAudio * | audio | Read / Write |
|
|
channel-type | Read / Write |
|
|
control-name | Read / Write |
| default-value | Read / Write | |
| line | Read / Write | |
| lower | Read / Write | |
| AgsPort * | port | Read / Write |
| steps | Read / Write | |
|
|
timestamp | Read / Write |
| upper | Read / Write |
Types and Values
| #define | AGS_AUTOMATION_DEFAULT_BPM |
| #define | AGS_AUTOMATION_TICS_PER_BEAT |
| #define | AGS_AUTOMATION_MINIMUM_ACCELERATION_LENGTH |
| #define | AGS_AUTOMATION_MAXIMUM_ACCELERATION_LENGTH |
| #define | AGS_AUTOMATION_DEFAULT_LENGTH |
| #define | AGS_AUTOMATION_DEFAULT_JIFFIE |
| #define | AGS_AUTOMATION_DEFAULT_DURATION |
| #define | AGS_AUTOMATION_DEFAULT_OFFSET |
| #define | AGS_AUTOMATION_DEFAULT_PRECISION |
| #define | AGS_AUTOMATION_MAXIMUM_STEPS |
| #define | AGS_AUTOMATION_CLIPBOARD_VERSION |
| #define | AGS_AUTOMATION_CLIPBOARD_TYPE |
| #define | AGS_AUTOMATION_CLIPBOARD_FORMAT |
| #define | AGS_AUTOMATION_CLIPBOARD_LEGACY_FORMAT |
| enum | AgsAutomationFlags |
| #define | AGS_TYPE_AUTOMATION |
| struct | AgsAutomation |
| struct | AgsAutomationClass |
Description
AgsAutomation acts as a container of AgsAcceleration. The timestamp property tells the
engine what the first x offset of AgsAcceleration applies.
You can lookup AgsAutomation by start x offset with ags_automation_find_near_timestamp().
The next x offset is calculated as following:
next_x_offset = x_offset + AGS_AUTOMATION_DEFAULT_OFFSET;
Use ags_automation_add_acceleration() to add AgsAcceleration to AgsAutomation and
ags_automation_remove_acceleration() to remove it again.
In order to copy or cut accelerations you select them first by calling ags_automation_add_region_to_selection().
Functions
AGS_AUTOMATION_GET_OBJ_MUTEX()
#define AGS_AUTOMATION_GET_OBJ_MUTEX(obj) (&(((AgsAutomation *) obj)->obj_mutex))
ags_automation_get_obj_mutex ()
GRecMutex * ags_automation_get_obj_mutex (AgsAutomation *automation);
Get object mutex.
Since:
ags_automation_test_flags ()
gboolean ags_automation_test_flags (AgsAutomation *automation,AgsAutomationFlags flags);
Test flags
to be set on automation
.
Since:
ags_automation_set_flags ()
void ags_automation_set_flags (AgsAutomation *automation,AgsAutomationFlags flags);
Set flags
on automation
.
Since:
ags_automation_unset_flags ()
void ags_automation_unset_flags (AgsAutomation *automation,AgsAutomationFlags flags);
Unset flags
on automation
.
Since:
ags_automation_find_port ()
GList * ags_automation_find_port (,GList *automation);GObject *port
Find automation by port.
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
port |
the AgsPort to match |
Returns
next matching automation as NULL
[element-type AgsAudio.Automation][transfer none]
Since:
ags_automation_find_near_timestamp ()
GList * ags_automation_find_near_timestamp (,GList *automation,guint line);AgsTimestamp *timestamp
Retrieve appropriate automation for timestamp.
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
line |
the matching audio channel |
|
timestamp |
the matching timestamp |
Since:
ags_automation_find_near_timestamp_extended ()
GList * ags_automation_find_near_timestamp_extended (,GList *automation,guint line,GType channel_type,gchar *control_name);AgsTimestamp *timestamp
Retrieve appropriate automation for timestamp.
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
line |
the matching audio channel |
|
channel_type |
the matching channel type |
|
control_name |
the matching control name |
|
timestamp |
the matching timestamp |
Since:
ags_automation_sort_func ()
gint ags_automation_sort_func (,gconstpointer a);gconstpointer b
Compare a
to b
.
Since:
ags_automation_add ()
GList * ags_automation_add (,GList *automationAgsAutomation *new_automation);
Add new_automation
sorted to automation
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
new_automation |
the AgsAutomation to add |
Since:
ags_automation_get_audio ()
GObject * ags_automation_get_audio (AgsAutomation *automation);
Get audio.
Since:
ags_automation_set_audio ()
void ags_automation_set_audio (AgsAutomation *automation,);GObject *audio
Set audio.
Since:
ags_automation_get_channel_type ()
GType ags_automation_get_channel_type (AgsAutomation *automation);
Gets channel type.
Since:
ags_automation_set_channel_type ()
void ags_automation_set_channel_type (AgsAutomation *automation,);GType channel_type
Sets channel type.
Since:
ags_automation_get_line ()
guint ags_automation_get_line (AgsAutomation *automation);
Gets line.
Since:
ags_automation_set_line ()
void ags_automation_set_line (AgsAutomation *automation,);guint line
Sets line.
Since:
ags_automation_get_timestamp ()
AgsTimestamp * ags_automation_get_timestamp (AgsAutomation *automation);
Get timestamp.
Since:
ags_automation_set_timestamp ()
void ags_automation_set_timestamp (AgsAutomation *automation,);AgsTimestamp *timestamp
Set timestamp.
Since:
ags_automation_get_control_name ()
gchar * ags_automation_get_control_name (AgsAutomation *automation);
Get control name.
Since:
ags_automation_set_control_name ()
void ags_automation_set_control_name (AgsAutomation *automation,);gchar *control_name
Set control name.
Since:
ags_automation_get_steps ()
guint ags_automation_get_steps (AgsAutomation *automation);
Gets steps.
Since:
ags_automation_set_steps ()
void ags_automation_set_steps (AgsAutomation *automation,);guint steps
Sets steps.
Since:
ags_automation_get_upper ()
gdouble ags_automation_get_upper (AgsAutomation *automation);
Gets upper.
Since:
ags_automation_set_upper ()
void ags_automation_set_upper (AgsAutomation *automation,);gdouble upper
Sets upper.
Since:
ags_automation_get_lower ()
gdouble ags_automation_get_lower (AgsAutomation *automation);
Gets lower.
Since:
ags_automation_set_lower ()
void ags_automation_set_lower (AgsAutomation *automation,);gdouble lower
Sets lower.
Since:
ags_automation_get_default_value ()
gdouble ags_automation_get_default_value (AgsAutomation *automation);
Gets default value.
Since:
ags_automation_set_default_value ()
void ags_automation_set_default_value (AgsAutomation *automation,);gdouble default_value
Sets default value.
Since:
ags_automation_get_port ()
GObject * ags_automation_get_port (AgsAutomation *automation);
Get port.
Since:
ags_automation_set_port ()
void ags_automation_set_port (AgsAutomation *automation,);GObject *port
Set port.
Since:
ags_automation_get_acceleration ()
GList * ags_automation_get_acceleration (AgsAutomation *automation);
Get acceleration.
Since:
ags_automation_set_acceleration ()
void ags_automation_set_acceleration (AgsAutomation *automation,);GList *acceleration
Set acceleration by replacing existing.
Parameters
automation |
the AgsAutomation |
|
acceleration |
the |
[element-type AgsAudio.Acceleration][transfer full] |
Since:
ags_automation_add_acceleration ()
void ags_automation_add_acceleration (AgsAutomation *automation,AgsAcceleration *acceleration,);gboolean use_selection_list
Adds acceleration
to automation
.
Parameters
automation |
the AgsAutomation |
|
acceleration |
the AgsAcceleration to add |
|
use_selection_list |
if |
Since:
ags_automation_remove_acceleration ()
void ags_automation_remove_acceleration (AgsAutomation *automation,AgsAcceleration *acceleration,);gboolean use_selection_list
Removes acceleration
from automation
.
Parameters
automation |
the AgsAutomation |
|
acceleration |
the AgsAcceleration to remove |
|
use_selection_list |
if |
Since:
ags_automation_remove_acceleration_at_position ()
gboolean ags_automation_remove_acceleration_at_position (AgsAutomation *automation,,guint x);gdouble y
Removes one AgsAcceleration of automation.
Since:
ags_automation_get_selection ()
GList * ags_automation_get_selection (AgsAutomation *automation);
Retrieve selection.
Since:
ags_automation_is_acceleration_selected ()
gboolean ags_automation_is_acceleration_selected (AgsAutomation *automation,AgsAcceleration *acceleration);
Check selection for acceleration.
Since:
ags_automation_find_point ()
AgsAcceleration * ags_automation_find_point (AgsAutomation *automation,,guint x,gdouble y);gboolean use_selection_list
Find acceleration by offset and acceleration.
Parameters
automation |
the AgsAutomation |
|
x |
x offset |
|
y |
y value acceleration, will be ignored |
|
use_selection_list |
if |
Since:
ags_automation_find_region ()
GList * ags_automation_find_region (AgsAutomation *automation,,guint x0,gdouble y0,guint x1,gdouble y1);gboolean use_selection_list
Find acceleration by offset and value region.
Parameters
automation |
the AgsAutomation |
|
x0 |
start offset |
|
y0 |
value start |
|
x1 |
end offset |
|
y1 |
value end |
|
use_selection_list |
if |
Since:
ags_automation_free_selection ()
void ags_automation_free_selection (AgsAutomation *automation);
Clear selection.
Since:
ags_automation_free_all_selection ()
void ags_automation_free_all_selection ();GList *automation
Clear all selection of automation
.
Since:
ags_automation_add_point_to_selection ()
void ags_automation_add_point_to_selection (AgsAutomation *automation,,guint x,gdouble y);gboolean replace_current_selection
Select acceleration at position.
Parameters
automation |
the AgsAutomation |
|
x |
x offset |
|
y |
y acceleration value |
|
replace_current_selection |
if |
Since:
ags_automation_remove_point_from_selection ()
void ags_automation_remove_point_from_selection (AgsAutomation *automation,,guint x);gdouble y
Remove acceleration at position of selection.
Since:
ags_automation_add_region_to_selection ()
void ags_automation_add_region_to_selection (AgsAutomation *automation,,guint x0,gdouble y0,guint x1,gdouble y1);gboolean replace_current_selection
ags_automation_remove_region_from_selection ()
void ags_automation_remove_region_from_selection (AgsAutomation *automation,,guint x0,gdouble y0,guint x1);gdouble y1
Remove acceleration within region of selection.
Parameters
automation |
the AgsAutomation |
|
x0 |
x start offset |
|
y0 |
y start acceleration |
|
x1 |
x end offset |
|
y1 |
y end acceleration |
Since:
ags_automation_add_all_to_selection ()
void ags_automation_add_all_to_selection (AgsAutomation *automation);
Add all acceleration to selection.
Since:
ags_automation_copy_selection ()
xmlNode * ags_automation_copy_selection (AgsAutomation *automation);
Copy selection to clipboard.
Since:
ags_automation_cut_selection ()
xmlNode * ags_automation_cut_selection (AgsAutomation *automation);
Cut selection to clipboard.
Since:
ags_automation_insert_from_clipboard ()
void ags_automation_insert_from_clipboard (AgsAutomation *automation,,xmlNode *automation_node,gboolean reset_x_offset,guint x_offset,gboolean reset_y_offset);gdouble y_offset
Insert clipboard automation_node
to automation
.
Parameters
automation |
the AgsAutomation |
|
automation_node |
the xmlNode |
|
reset_x_offset |
if |
|
x_offset |
the x offset to use |
|
reset_y_offset |
if |
|
y_offset |
the y offset to use |
Since:
ags_automation_insert_from_clipboard_extended ()
void ags_automation_insert_from_clipboard_extended (AgsAutomation *automation,,xmlNode *automation_node,gboolean reset_x_offset,guint x_offset,gboolean reset_y_offset,gdouble y_offset,gboolean match_line);gboolean no_duplicates
Insert clipboard automation_node
to automation
.
Parameters
automation |
the AgsAutomation |
|
automation_node |
the xmlNode |
|
reset_x_offset |
if |
|
x_offset |
the x offset to use |
|
reset_y_offset |
if |
|
y_offset |
the y offset to use |
|
match_line |
if |
|
no_duplicates |
if |
Since:
ags_automation_get_specifier_unique ()
gchar ** ags_automation_get_specifier_unique ();GList *automation
Retrieve automation port specifier.
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
Since:
ags_automation_get_specifier_unique_with_channel_type ()
gchar ** ags_automation_get_specifier_unique_with_channel_type (,GList *automation);GType channel_type
Retrieve automation port specifier.
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
channel_type |
the channel's |
Since:
ags_automation_find_specifier ()
GList * ags_automation_find_specifier (,GList *automation);gchar *specifier
Find port specifier.
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
specifier |
the string specifier to find |
Since:
ags_automation_find_channel_type_with_control_name ()
GList * ags_automation_find_channel_type_with_control_name (,GList *automation,GType channel_type);gchar *specifier
Find automation by channel_type
.
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
channel_type |
the |
|
specifier |
the control name |
Returns
next matching automation as NULL
[element-type AgsAudio.Automation][transfer none]
Since:
ags_automation_find_specifier_with_type_and_line ()
GList * ags_automation_find_specifier_with_type_and_line (,GList *automation,gchar *specifier,GType channel_type);guint line
Find port specifier with channel type and line.
Parameters
automation |
the |
[element-type AgsAudio.Automation][transfer none] |
specifier |
the string specifier to find |
|
channel_type |
the channel |
|
line |
the line |
Since:
ags_automation_get_value ()
guint ags_automation_get_value (AgsAutomation *automation,,guint x,guint x_end,gboolean use_prev_on_failure);GValue *value
Get automation value.
Parameters
automation |
the AgsAutomation |
|
x |
the x-offset |
|
x_end |
the x-end-offset |
|
use_prev_on_failure |
if |
|
value |
the return location of value. |
[out caller-allocates] |
Since:
ags_automation_new ()
AgsAutomation * ags_automation_new (,GObject *audio,guint line,GType channel_type);gchar *control_name
Creates a new instance of AgsAutomation.
Parameters
audio |
the AgsAudio |
|
line |
the line to apply |
|
channel_type |
the channel type |
|
control_name |
the control name |
Since:
AGS_AUTOMATION()
#define AGS_AUTOMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOMATION, AgsAutomation))
AGS_AUTOMATION_CLASS()
#define AGS_AUTOMATION_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTOMATION, AgsAutomationClass))
AGS_AUTOMATION_GET_CLASS()
#define AGS_AUTOMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_AUTOMATION, AgsAutomationClass))
AGS_IS_AUTOMATION()
#define AGS_IS_AUTOMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOMATION))
AGS_IS_AUTOMATION_CLASS()
#define AGS_IS_AUTOMATION_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTOMATION))
Types and Values
AGS_AUTOMATION_MINIMUM_ACCELERATION_LENGTH
#define AGS_AUTOMATION_MINIMUM_ACCELERATION_LENGTH (1.0 / 16.0 / 64.0)
AGS_AUTOMATION_MAXIMUM_ACCELERATION_LENGTH
#define AGS_AUTOMATION_MAXIMUM_ACCELERATION_LENGTH (16.0)
AGS_AUTOMATION_DEFAULT_LENGTH
#define AGS_AUTOMATION_DEFAULT_LENGTH (64 * 16 * 16 * 1200 / AGS_AUTOMATION_TICS_PER_BEAT)
AGS_AUTOMATION_DEFAULT_JIFFIE
#define AGS_AUTOMATION_DEFAULT_JIFFIE (60.0 / AGS_AUTOMATION_DEFAULT_BPM / AGS_AUTOMATION_TICS_PER_BEAT)
AGS_AUTOMATION_DEFAULT_DURATION
#define AGS_AUTOMATION_DEFAULT_DURATION (AGS_AUTOMATION_DEFAULT_LENGTH * AGS_AUTOMATION_DEFAULT_JIFFIE * AGS_USEC_PER_SEC)
AGS_AUTOMATION_DEFAULT_OFFSET
#define AGS_AUTOMATION_DEFAULT_OFFSET (64 * (1 / AGS_AUTOMATION_MINIMUM_ACCELERATION_LENGTH))
AGS_AUTOMATION_CLIPBOARD_LEGACY_FORMAT
#define AGS_AUTOMATION_CLIPBOARD_LEGACY_FORMAT "AgsAutomationNativePiano"
enum AgsAutomationFlags
Enum values to control the behavior or indicate internal state of AgsAutomation by enable/disable as flags.
Property Details
The “acceleration” property
“acceleration”gpointer
The acceleration list.
[transfer full]
Owner: AgsAutomation
Flags: Read / Write
Since:
The “audio” property
“audio” AgsAudio *
The assigned AgsAudio
Owner: AgsAutomation
Flags: Read / Write
Since:
The “channel-type” property
“channel-type”GType *
The effect's assigned channel type.
Owner: AgsAutomation
Flags: Read / Write
Allowed values: void
Since:
The “control-name” property
“control-name”char *
The effect's assigned control name.
Owner: AgsAutomation
Flags: Read / Write
Default value: NULL
Since:
The “default-value” property
“default-value”double
The effect's default-value.
Owner: AgsAutomation
Flags: Read / Write
Default value: 0
Since:
The “line” property
“line”guint
The effect's line.
Owner: AgsAutomation
Flags: Read / Write
Allowed values: <= 65535
Default value: 0
Since:
The “lower” property
“lower”double
The effect's lower.
Owner: AgsAutomation
Flags: Read / Write
Default value: 0
Since:
The “port” property
“port” AgsPort *
The assigned AgsPort
Owner: AgsAutomation
Flags: Read / Write
Since:
The “steps” property
“steps”guint
The effect's steps.
Owner: AgsAutomation
Flags: Read / Write
Default value: 0
Since:
The “timestamp” property
“timestamp”AgsTimestamp *
The automation's timestamp.
Owner: AgsAutomation
Flags: Read / Write
Since: