feat: compare mixer A/B snapshots with undo and qualify modern editing workflows
This commit is contained in:
parent
310b81ec4d
commit
1b668068de
14 changed files with 261 additions and 34 deletions
|
|
@ -19,11 +19,13 @@ xtc_result xtc_project_transform_clips(xtc_project *project,const uint64_t *ids,
|
|||
xtc_clip_operation operation,int64_t amount,uint64_t *out_ids);
|
||||
/* 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. No matching notes returns NOT_FOUND. Edits are atomic.
|
||||
* fields persist. Initialize the edit struct to zero and set the fields for its
|
||||
* type; other fields are ignored. No matching notes returns NOT_FOUND. Edits are atomic.
|
||||
* Swing: grid 1..3840, swing 0..100 delays alternate grid points by up to half
|
||||
* a grid; strength 0..100 blends toward the nearest swung point (ties later).
|
||||
* Swing durations stay fixed. LEGATO ends at the next strictly later onset in
|
||||
* the same clip/channel (chords stay together), or source end for the last onset. Out-of-source results reject the complete operation. */
|
||||
* the same clip/channel (chords stay together), or source end for the last onset.
|
||||
* Out-of-source results reject the complete operation. */
|
||||
typedef enum { XTC_MIDI_TRANSFORM_SWING, XTC_MIDI_TRANSFORM_GATE, XTC_MIDI_TRANSFORM_LEGATO, XTC_MIDI_TRANSFORM_SCALE, XTC_MIDI_TRANSFORM_VELOCITY } xtc_midi_transform_type;
|
||||
typedef struct {
|
||||
xtc_midi_transform_type type;
|
||||
|
|
@ -35,6 +37,15 @@ typedef struct {
|
|||
unsigned int gate_percent; /* GATE: 1..400, rounded length, minimum 1 tick. */
|
||||
} xtc_midi_transform;
|
||||
xtc_result xtc_project_transform_midi(xtc_project *project,const uint64_t *ids,size_t count,const xtc_midi_transform *edit);
|
||||
/* 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,
|
||||
* instrument/plugin state are excluded; automation still overrides static gain
|
||||
* and pan. Snapshots are not serialized. out is unchanged on capture failure. */
|
||||
typedef struct xtc_mix_snapshot xtc_mix_snapshot;
|
||||
xtc_result xtc_mix_snapshot_create(const xtc_project *project,xtc_mix_snapshot **out);
|
||||
void xtc_mix_snapshot_destroy(xtc_mix_snapshot *snapshot);
|
||||
xtc_result xtc_mix_snapshot_recall(const xtc_mix_snapshot *snapshot,xtc_project *project);
|
||||
/* Repeat the bounding phrase span, including gaps, 1..1024 additional copies.
|
||||
* Originals remain selected by the caller; all copies publish together. */
|
||||
xtc_result xtc_project_repeat_clips(xtc_project *project,const uint64_t *ids,size_t count,unsigned int copies);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue