Zrythm
a highly automated and intuitive digital audio workstation
|
Automation point API. More...
#include "dsp/curve.h"
#include "dsp/position.h"
#include "dsp/region_identifier.h"
#include "gui/backend/arranger_object.h"
#include "utils/types.h"
Go to the source code of this file.
Data Structures | |
struct | AutomationPointDrawSettings |
Used for caching. More... | |
struct | AutomationPoint |
An automation point inside an AutomationTrack. More... | |
Macros | |
#define | AP_WIDGET_POINT_SIZE 6 |
#define | automation_point_is_selected(r) arranger_object_is_selected ((ArrangerObject *) r) |
Typedefs | |
typedef struct _AutomationPointWidget | AutomationPointWidget |
Functions | |
AutomationPoint * | automation_point_new_float (const float value, const float normalized_val, const Position *pos) |
Creates an AutomationPoint in the given AutomationTrack at the given Position. | |
void | automation_point_set_fvalue (AutomationPoint *self, float real_val, bool is_normalized, bool pub_events) |
Sets the value from given real or normalized value and notifies interested parties. | |
const char * | automation_point_get_fvalue_as_string (AutomationPoint *self) |
void | automation_point_set_fvalue_with_action (AutomationPoint *self, const char *fval_str) |
void | automation_point_set_region_and_index (AutomationPoint *_ap, Region *region, int index) |
Sets the Region and the index in the region that the AutomationPoint belongs to, in all its counterparts. | |
HOT double | automation_point_get_normalized_value_in_curve (AutomationPoint *self, Region *region, double x) |
The function to return a point on the curve. | |
void | automation_point_set_curviness (AutomationPoint *ap, const curviness_t curviness) |
Sets the curviness of the AutomationPoint. | |
Port * | automation_point_get_port (const AutomationPoint *const self) |
Convenience function to return the control port that this AutomationPoint is for. | |
AutomationTrack * | automation_point_get_automation_track (const AutomationPoint *const self) |
Convenience function to return the AutomationTrack that this AutomationPoint is in. | |
int | automation_point_is_equal (AutomationPoint *a, AutomationPoint *b) |
NONNULL bool | automation_point_curves_up (AutomationPoint *self) |
Returns if the curve of the AutomationPoint curves upwards as you move right on the x axis. | |
Automation point API.
Definition in file automation_point.h.
typedef struct _AutomationPointWidget AutomationPointWidget |
Definition at line 21 of file automation_point.h.