audio/track_lane.h file

Contents

Track lanes for each track.

Classes

struct TrackLane
A TrackLane belongs to a Track (can have many TrackLanes in a Track) and contains Regions.

Typedefs

using TrackLane = struct TrackLane
A TrackLane belongs to a Track (can have many TrackLanes in a Track) and contains Regions.

Functions

auto track_lane_new(Track* track, int pos) -> TrackLane*
Creates a new TrackLane at the given pos in the given Track.
void track_lane_insert_region(TrackLane* self, ZRegion* region, int idx)
Inserts a ZRegion to the given TrackLane at the given index.
void track_lane_add_region(TrackLane* self, ZRegion* region)
Adds a ZRegion to the given TrackLane.
void track_lane_remove_region(TrackLane* self, ZRegion* region)
Removes but does not free the region.
void track_lane_unselect_all(TrackLane* self)
Unselects all arranger objects.
void track_lane_clear(TrackLane* self)
Removes all objects recursively from the track lane.
void track_lane_update_frames(TrackLane* self)
Updates the frames of each position in each child of the track recursively.
void track_lane_set_track_pos(TrackLane* self, const int pos)
Sets the track position to the lane and all its members recursively.
auto track_lane_clone(TrackLane* lane) -> TrackLane*
Clones the TrackLane.
void track_lane_write_to_midi_file(TrackLane* self, MIDI_FILE* mf)
Writes the lane to the given MIDI file.
void track_lane_free(TrackLane* lane)
Frees the TrackLane.