feat(audio): crossfade overlapping clips in one undoable edit (phase 98)

This commit is contained in:
Johannes Findeisen 2026-11-06 02:10:11 +01:00
commit 083ac05ae6
10 changed files with 82 additions and 6 deletions

View file

@ -68,6 +68,11 @@ typedef struct {
unsigned int timing_variation,velocity_variation; /* 0..960 ticks, 0..127 velocity; source overflow rejects, velocity clamps. */
} xtc_midi_transform;
xtc_result xtc_project_transform_midi(xtc_project *project,const uint64_t *ids,size_t count,const xtc_midi_transform *edit);
/* Matching linear boundary fades for two partially overlapping non-MIDI clips
* on one track. Order is inferred. Equal starts/ends, containment and adjacency
* reject; opposite fades, media, gains and positions remain unchanged.
* No allocation or I/O; control-thread only, errors leave both clips intact. */
xtc_result xtc_project_crossfade(xtc_project *project,uint64_t first,uint64_t second);
/* Session static mixer comparison. Capture owns an independent snapshot of
* gain/pan/mute/solo for all tracks/buses. Recall requires the exact same stable
* track ID set (order may change), and publishes atomically. Routing, automation,