audio/automation_point.h file


Automation point API.


struct AutomationPoint
An automation point inside an AutomationTrack.


using AutomationPoint = struct AutomationPoint
An automation point inside an AutomationTrack.


auto automation_point_new_float(const float value, const float normalized_val, const Position* pos) -> AutomationPoint*
Creates an AutomationPoint in the given AutomationTrack at the given Position.
void automation_point_set_fvalue(AutomationPoint* self, float real_val, bool is_normalized)
Sets the value from given real or normalized value and notifies interested parties.
void automation_point_set_region_and_index(AutomationPoint* _ap, ZRegion* region, int index)
Sets the ZRegion and the index in the region that the AutomationPoint belongs to, in all its counterparts.
auto automation_point_get_normalized_value_in_curve(AutomationPoint* ap, double x) -> double
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.
auto automation_point_get_port(AutomationPoint* self) -> Port*
Convenience function to return the control port that this AutomationPoint is for.
auto automation_point_get_automation_track(AutomationPoint* self) -> AutomationTrack*
Convenience function to return the AutomationTrack that this AutomationPoint is in.
auto automation_point_get_y(AutomationPoint* self, int height) -> int
Returns Y in pixels from the value based on the given height of the parent.
auto automation_point_curves_up(AutomationPoint* self) -> bool
Returns if the curve of the AutomationPoint curves upwards as you move right on the x axis.