feat: collect portable project media with transactional cleanup and qualify composition workflows
This commit is contained in:
parent
d676d74a11
commit
b0cfa79131
15 changed files with 225 additions and 10 deletions
|
|
@ -63,9 +63,9 @@ typedef struct {
|
|||
unsigned int velocity_percent; /* VELOCITY: 0..400, rounded scaling then offset, clamp to 1..127. */
|
||||
int velocity_offset; /* -127..127 */
|
||||
unsigned int root,scale; /* SCALE: root 0..11 (C..B), scale 0 chromatic, 1 major, 2 natural minor; nearest ties lower. */
|
||||
unsigned int gate_percent; /* GATE: 1..400, rounded length, minimum 1 tick. */
|
||||
unsigned int seed; /* HUMANIZE: stable note-ID keyed 32-bit PRNG seed. */
|
||||
unsigned int timing_variation,velocity_variation; /* 0..960 ticks, 0..127 velocity; source overflow rejects, velocity clamps. */
|
||||
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
|
||||
|
|
|
|||
|
|
@ -225,6 +225,14 @@ xtc_result xtc_project_tick_to_sample(const xtc_project *project, uint64_t tick,
|
|||
*/
|
||||
xtc_result xtc_project_sample_to_tick(const xtc_project *project, uint64_t sample, unsigned int sample_rate,
|
||||
uint64_t *out_tick);
|
||||
/* Control-thread portable media copy into a NEW absolute directory. Writes
|
||||
* project.xtc and deduplicated media-NNN.wav files with relative saved refs.
|
||||
* Original project/files unchanged. Existing destination rejects; folder is
|
||||
* visible while building, project is saved last. Failure removes owned outputs.
|
||||
* Max 128 distinct regular assets, 256 MiB/file and 1 GiB total; no DSP/plugin
|
||||
* execution. Native graphs reject; external plugin binaries/state are not copied.
|
||||
* Byte-copy preserves referenced files; this does not repair invalid WAV data. */
|
||||
xtc_result xtc_project_collect(const xtc_project *project,const char *directory);
|
||||
/* Control-thread I/O. Versioned, bounded format; see docs/PROJECT_FORMAT.md.
|
||||
* Load is transactional. Save fsyncs a same-directory temporary and renames it;
|
||||
* failures before rename preserve the previous destination. No asset I/O. v7+ saves local media paths relative to the project folder; load
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue