feat(midi): import Standard MIDI Files with transactional undo (phase 104)
This commit is contained in:
parent
02ee1818a3
commit
f37ad8987a
9 changed files with 234 additions and 5 deletions
|
|
@ -10,6 +10,13 @@ extern "C" {
|
|||
* Includes clip name and trailing silence. No CC/program/plugin/audio data.
|
||||
* Existing destination survives validation/write failures before atomic rename. */
|
||||
xtc_result xtc_project_export_midi_clip(const xtc_project *,uint64_t clip,const char *path);
|
||||
/* Transactional notes-only type 0/1 PPQN import into an existing non-bus track.
|
||||
* Merges file tracks, preserving channels, rounds timing to 960 PPQN and retains
|
||||
* trailing silence. Keeps project tempo; ignores meta/CC/program/bend/SysEx data.
|
||||
* Max 1 MiB, 64 tracks, 65536 events and 4096 notes. SMPTE/type 2 unsupported.
|
||||
* Unclosed notes or malformed data reject; same-pitch overlap pairs FIFO per
|
||||
* file track/channel. IDs/project/out_clip remain unchanged on every error. */
|
||||
xtc_result xtc_project_import_midi(xtc_project *,uint64_t track,uint64_t start,const char *path,uint64_t *out_clip);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue