feat: generate bounded ascending and descending MIDI arpeggio patterns

This commit is contained in:
Johannes Findeisen 2026-11-06 00:42:33 +01:00
commit ea0b4ca3da
9 changed files with 89 additions and 5 deletions

View file

@ -41,6 +41,11 @@ xtc_result xtc_project_merge_midi(xtc_project *project,const uint64_t *ids,size_
* 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);
/* Offline arpeggio: replaces all source notes in selected MIDI clips with fresh
* IDs. Equal-onset/channel notes form a chord lasting to its longest note end.
* step 1..3840, gate 1..100 percent, descending 0/1. Cycles sorted pitches (ties
* by original ID); each step inherits its chosen note velocity/channel. Atomic. */
xtc_result xtc_project_arpeggiate(xtc_project *project,const uint64_t *ids,size_t count,uint64_t step,unsigned int gate,int descending);
/* 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