feat(presets): add creative internal effect chain templates (phase 94)

This commit is contained in:
Johannes Findeisen 2026-11-06 02:06:27 +01:00
commit c65ac61a98
7 changed files with 62 additions and 4 deletions

View file

@ -38,6 +38,11 @@ typedef struct { xtc_plugin_spec plugin; unsigned int enabled; float wet; } xtc_
typedef struct { size_t count; float output_gain; xtc_track_insert slots[XTC_TRACK_INSERTS]; } xtc_track_chain;
/* Copies the selected slot immediately after itself, preserving all metadata.
* Input/output may alias; errors preserve output. */
/* Original internal-device starting points: 0 Slapback, 1 Dub Echo,
* 2 Ambient Space. Name returns NULL for an unknown index. No modules opened;
* template errors preserve out. Delay times are milliseconds, not beat sync. */
const char *xtc_track_chain_template_name(unsigned int index);
xtc_result xtc_track_chain_template(unsigned int index,unsigned int tempo,xtc_track_chain *out);
xtc_result xtc_track_chain_duplicate(const xtc_track_chain *chain,size_t index,xtc_track_chain *out);
xtc_result xtc_track_chain_preset_save(const xtc_track_chain *chain,const char *path);
xtc_result xtc_track_chain_preset_load(const char *path,xtc_track_chain *out);