feat: ripple timeline ranges with markers and automation atomically

This commit is contained in:
Johannes Findeisen 2026-11-06 00:32:33 +01:00
commit 7084e660fe
9 changed files with 95 additions and 5 deletions

View file

@ -17,6 +17,12 @@ extern "C" {
typedef enum { XTC_CLIPS_MOVE, XTC_CLIPS_DUPLICATE, XTC_CLIPS_DELETE, XTC_CLIPS_ALIGN, XTC_CLIPS_SLIP, XTC_CLIPS_FADE } xtc_clip_operation;
xtc_result xtc_project_transform_clips(xtc_project *project,const uint64_t *ids,size_t count,
xtc_clip_operation operation,int64_t amount,uint64_t *out_ids);
/* Insert a gap or delete [begin,begin+length), removing contained clips/notes
* and shifting later clips, markers, mixer/instrument/graph plugin automation.
* Crossing clips reject (split them first); source notes and static tempo stay
* unchanged. No interpolated automation guard points are synthesized. Atomic.
* remove must be 0 or 1. GUI loop preferences are outside the project. */
xtc_result xtc_project_ripple_time(xtc_project *project,uint64_t begin,uint64_t length,int remove);
/* MIDI transforms affect ALL source notes in selected MIDI clips, including
* notes hidden by trims. Mixed audio/MIDI selections reject; IDs and unaffected
* fields persist. Initialize the edit struct to zero and set the fields for its