feat(midi): strum chords with preserved note ends and undo (phase 99)
This commit is contained in:
parent
083ac05ae6
commit
bd0a63c06d
17 changed files with 172 additions and 5 deletions
|
|
@ -17,6 +17,14 @@ extern "C" {
|
|||
typedef enum { XTC_CLIPS_MOVE, XTC_CLIPS_DUPLICATE, XTC_CLIPS_DELETE, XTC_CLIPS_ALIGN, XTC_CLIPS_SLIP, XTC_CLIPS_FADE } xtc_clip_operation;
|
||||
xtc_result xtc_project_transform_clips(xtc_project *project,const uint64_t *ids,size_t count,
|
||||
xtc_clip_operation operation,int64_t amount,uint64_t *out_ids);
|
||||
/* Control-thread chord strumming in selected MIDI clips, including hidden source
|
||||
* notes. Groups share source onset and channel within one clip. Pitch order is
|
||||
* ascending (descending=0) or descending (1), equal pitches ordered by stable ID.
|
||||
* Spacing is 1..960 ticks; original note ends and all other properties remain.
|
||||
* Any nonpositive resulting duration rejects the entire edit. No chords returns
|
||||
* NOT_FOUND. Allocation/validation errors preserve the project and IDs. */
|
||||
xtc_result xtc_project_strum(xtc_project *project,const uint64_t *ids,size_t count,
|
||||
uint64_t spacing,int descending);
|
||||
/* Insert a gap or delete [begin,begin+length), removing contained clips/notes
|
||||
* and shifting later clips, markers, mixer/instrument/graph plugin automation.
|
||||
* Crossing clips reject (split them first); source notes and static tempo stay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue