Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
plugin_preset.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2020-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __PLUGINS_PLUGIN_PRESET_H__
11#define __PLUGINS_PLUGIN_PRESET_H__
12
14#include "utils/yaml.h"
15
22#define PLUGIN_BANK_SCHEMA_VERSION 1
23#define PLUGIN_PRESET_IDENTIFIER_SCHEMA_VERSION 1
24#define PLUGIN_PRESET_SCHEMA_VERSION 1
25
41
45typedef struct PluginPreset
46{
48 char * name;
49
51 char * uri;
52
55
58
65typedef struct PluginBank
66{
69 int num_presets;
70 size_t presets_size;
71
73 char * uri;
74
76 char * name;
77
80
82plugin_bank_new (void);
83
85plugin_preset_new (void);
86
87NONNULL void
88plugin_preset_identifier_init (PluginPresetIdentifier * id);
89
94#endif
Plugin identifier.
A plugin bank containing presets.
char * uri
URI if LV2.
char * name
Human readable name.
PluginPreset ** presets
Presets in this bank.
Plugin identifier.
Preset identifier.
int idx
Index in bank, or -1 if this is used for a bank.
PluginIdentifier plugin_id
Plugin identifier.
int bank_idx
Bank index in plugin.
Plugin preset.
char * uri
URI if LV2.
char * name
Human readable name.
int carla_program
Carla program index.
YAML utils.