feat(midi): export selected clip as an atomic Standard MIDI File (phase 103)
This commit is contained in:
parent
e9d0c62fd6
commit
02ee1818a3
9 changed files with 178 additions and 5 deletions
16
include/xtc/xtc_midi_file.h
Normal file
16
include/xtc/xtc_midi_file.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue