Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
arranger_selections.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_ARRANGER_SELECTIONS_H__
11#define __SCHEMAS_GUI_BACKEND_ARRANGER_SELECTIONS_H__
12
13#include "utils/yaml.h"
14
15typedef enum ArrangerSelectionsType_v1
16{
17 ARRANGER_SELECTIONS_TYPE_NONE_v1,
18 ARRANGER_SELECTIONS_TYPE_CHORD_v1,
19 ARRANGER_SELECTIONS_TYPE_TIMELINE_v1,
20 ARRANGER_SELECTIONS_TYPE_MIDI_v1,
21 ARRANGER_SELECTIONS_TYPE_AUTOMATION_v1,
22 ARRANGER_SELECTIONS_TYPE_AUDIO_v1,
23} ArrangerSelectionsType_v1;
24
25static const cyaml_strval_t arranger_selections_type_strings_v1[] = {
26 { "Chord", ARRANGER_SELECTIONS_TYPE_CHORD_v1 },
27 { "Timeline", ARRANGER_SELECTIONS_TYPE_TIMELINE_v1 },
28 { "MIDI", ARRANGER_SELECTIONS_TYPE_MIDI_v1 },
29 { "Automation", ARRANGER_SELECTIONS_TYPE_AUTOMATION_v1 },
30 { "Audio", ARRANGER_SELECTIONS_TYPE_AUDIO_v1 },
31};
32
34{
35 int schema_version;
36 ArrangerSelectionsType_v1 type;
37 int magic;
39
40static const cyaml_schema_field_t arranger_selections_fields_schema_v1[] = {
41 YAML_FIELD_INT (ArrangerSelections_v1, schema_version),
42 YAML_FIELD_ENUM (ArrangerSelections_v1, type, arranger_selections_type_strings_v1),
43
44 CYAML_FIELD_END
45};
46
47static const cyaml_schema_value_t arranger_selections_schema_v1 = {
48 YAML_VALUE_PTR (ArrangerSelections_v1, arranger_selections_fields_schema_v1),
49};
50
51#endif
YAML utils.