feat: build custom MIDI chord voicings with atomic pitch and capacity checks

This commit is contained in:
Johannes Findeisen 2026-11-06 00:40:48 +01:00
commit 6be4f9803a
9 changed files with 76 additions and 5 deletions

View file

@ -37,6 +37,10 @@ xtc_result xtc_project_split_midi(xtc_project *project,uint64_t clip,uint64_t ti
* boundaries, drops hidden notes, retains overlaps and gaps. Fresh IDs; atomic.
* Cropped notes start anew; instrument envelopes/phase can change. */
xtc_result xtc_project_merge_midi(xtc_project *project,const uint64_t *ids,size_t count,uint64_t *out);
/* Adds 1..8 unique nonzero semitone intervals (-127..127) to EVERY source note
* in selected MIDI clips, retaining originals/articulation and allocating fresh
* note IDs. Mixed selections, pitch overflow and capacity reject atomically. */
xtc_result xtc_project_chordify(xtc_project *project,const uint64_t *ids,size_t count,const int *intervals,size_t interval_count);
/* 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. Initialize the edit struct to zero and set the fields for its