feat: align clip selections and slip sources without moving boundaries

This commit is contained in:
Johannes Findeisen 2026-11-06 00:16:31 +01:00
commit b0dbf6905f
7 changed files with 44 additions and 7 deletions

View file

@ -9,8 +9,10 @@ extern "C" {
* ID counters and optional count-element output. No media loading or DSP work.
* MOVE/DUPLICATE amount is a signed tick displacement, bounded by MAX_TICK.
* DUPLICATE retains tracks, source ranges, notes and media with fresh IDs.
* ALIGN amount is an absolute timeline start; SLIP amount is a signed source
* offset change (audio or MIDI), retaining timeline start/length.
* out_ids receives resulting IDs (removed IDs for DELETE). May be NULL. */
typedef enum { XTC_CLIPS_MOVE, XTC_CLIPS_DUPLICATE, XTC_CLIPS_DELETE } xtc_clip_operation;
typedef enum { XTC_CLIPS_MOVE, XTC_CLIPS_DUPLICATE, XTC_CLIPS_DELETE, XTC_CLIPS_ALIGN, XTC_CLIPS_SLIP } 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);
/* Repeat the bounding phrase span, including gaps, 1..1024 additional copies.