Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_editor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __SCHEMAS_GUI_BACKEND_CHORD_EDITOR_H__
11#define __SCHEMAS_GUI_BACKEND_CHORD_EDITOR_H__
12
15#include "utils/yaml.h"
16
17typedef struct ChordEditor_v1
18{
19 int schema_version;
20 ChordDescriptor_v2 * chords[128];
21 int num_chords;
22 EditorSettings_v1 editor_settings;
24
25static const cyaml_schema_field_t chord_editor_fields_schema_v1[] = {
26 YAML_FIELD_INT (ChordEditor_v1, schema_version),
27 YAML_FIELD_FIXED_SIZE_PTR_ARRAY_VAR_COUNT (
29 chords,
30 chord_descriptor_schema_v2),
31 YAML_FIELD_MAPPING_EMBEDDED (
33 editor_settings,
34 editor_settings_fields_schema_v1),
35
36 CYAML_FIELD_END
37};
38
39static const cyaml_schema_value_t chord_editor_schema_v1 = {
40 CYAML_VALUE_MAPPING (
41 CYAML_FLAG_POINTER,
43 chord_editor_fields_schema_v1),
44};
45
46#endif
Editor settings schema.
Chord descriptor schema.
YAML utils.