audio/automation_region.h file


API for automation Region's.


auto automation_region_new(const Position* start_pos, const Position* end_pos, int track_pos, int at_idx, int idx_inside_at) -> ZRegion*
Creates a new ZRegion for automation.
void automation_region_print_automation(ZRegion* self)
Prints the automation in this Region.
void automation_region_force_sort(ZRegion* self)
Forces sort of the automation points.
void automation_region_add_ap(ZRegion* self, AutomationPoint* ap, int pub_events)
Adds an AutomationPoint to the Region.
auto automation_region_get_prev_ap(ZRegion* self, AutomationPoint* ap) -> AutomationPoint*
Returns the AutomationPoint before the given one.
auto automation_region_get_next_ap(ZRegion* self, AutomationPoint* ap, bool check_positions, bool check_transients) -> AutomationPoint*
Returns the AutomationPoint after the given one.
void automation_region_remove_ap(ZRegion* self, AutomationPoint* ap, int free)
Removes the AutomationPoint from the ZRegion, optionally freeing it.
void automation_region_get_aps_since_last_recorded(ZRegion* self, Position* pos, AutomationPoint** aps, int* num_aps)
Returns the automation points since the last recorded automation point (if the last recorded automation point was before the current pos).
auto automation_region_get_ap_around(ZRegion* self, Position* _pos, double delta_ticks, bool before_only) -> AutomationPoint*
Returns an automation point found within +/- delta_ticks from the position, or NULL.
void automation_region_free_members(ZRegion* self)
Frees members only but not the ZRegion itself.