feat: apply reversible boundary fades across audio clip selections

This commit is contained in:
Johannes Findeisen 2026-11-06 00:20:37 +01:00
commit 310b81ec4d
9 changed files with 47 additions and 7 deletions

View file

@ -11,8 +11,10 @@ extern "C" {
* 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.
* FADE sets both audio boundary fades to amount ticks (0 removes); each must
* fit within half the current clip duration. MIDI clips reject this operation.
* out_ids receives resulting IDs (removed IDs for DELETE). May be NULL. */
typedef enum { XTC_CLIPS_MOVE, XTC_CLIPS_DUPLICATE, XTC_CLIPS_DELETE, XTC_CLIPS_ALIGN, XTC_CLIPS_SLIP } xtc_clip_operation;
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);
/* MIDI transforms affect ALL source notes in selected MIDI clips, including