feat(midi): export selected clip as an atomic Standard MIDI File (phase 103)

This commit is contained in:
Johannes Findeisen 2026-11-06 02:26:20 +01:00
commit 02ee1818a3
9 changed files with 178 additions and 5 deletions

View file

@ -0,0 +1,16 @@
#ifndef XTC_MIDI_FILE_H
#define XTC_MIDI_FILE_H
#include "xtc_midi.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Control thread only. Atomic type-0 SMF, 960 PPQN, project constant tempo.
* Exports only audible source notes of a MIDI clip, relative to its start,
* retaining channels/velocities, clamping crossing notes to clip boundaries.
* 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);
#ifdef __cplusplus
}
#endif
#endif