audio/automation_region.h file

API for automation Region's.

Contents

Functions

auto automation_region_new(const Position* start_pos, const Position* end_pos, const int is_main) -> Region*
Creates a new Region for automation.
void automation_region_print_automation(Region* self)
Prints the automation in this Region.
void automation_region_force_sort(Region* self)
Forces sort of the automation points.
void automation_region_add_ap(Region* self, AutomationPoint* ap, int gen_curves)
Adds automation point and optionally generates curve points accordingly.
void automation_region_add_ac(Region* self, AutomationCurve* ac)
Adds the given AutomationCurve.
auto automation_region_get_prev_ap(Region* self, AutomationPoint* ap) -> AutomationPoint*
Returns the AutomationPoint before the position.
auto automation_region_get_next_ap(Region* self, AutomationPoint* ap) -> AutomationPoint*
Returns the AutomationPoint after the position.
static auto automation_region_get_ap_before_curve(Region* self, AutomationCurve* ac) -> AutomationPoint*
Returns the AutomationPoint before the given AutomationCurve.
static auto automation_region_get_ap_after_curve(Region* self, AutomationCurve* ac) -> AutomationPoint*
Returns the ap after the curve point.
auto automation_region_get_next_curve_ac(Region* self, AutomationPoint* ap) -> AutomationCurve*
Returns the curve point right after the given ap.
void automation_region_remove_ap(Region* self, AutomationPoint* ap, int free)
Removes the given AutomationPoint from the Region.
void automation_region_remove_ac(Region* self, AutomationCurve* ac, int free)
Removes the given AutomationCurve from the Region.
void automation_region_free_members(Region* self)
Frees members only but not the Region itself.