Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
timeline_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_TL_SELECTIONS_H__
11#define __SCHEMAS_GUI_BACKEND_TL_SELECTIONS_H__
12
17#include "utils/yaml.h"
18
20{
22 int schema_version;
23 ZRegion_v1 ** regions;
24 int num_regions;
25 ScaleObject_v1 ** scale_objects;
26 int num_scale_objects;
27 Marker_v1 ** markers;
28 int num_markers;
29 int region_track_vis_index;
30 int chord_track_vis_index;
31 int marker_track_vis_index;
33
34static const cyaml_schema_field_t timeline_selections_fields_schema_v1[] = {
35 YAML_FIELD_MAPPING_EMBEDDED (
37 base,
38 arranger_selections_fields_schema_v1),
39 YAML_FIELD_INT (TimelineSelections_v1, schema_version),
40 YAML_FIELD_DYN_ARRAY_VAR_COUNT (TimelineSelections_v1, regions, region_schema_v1),
41 YAML_FIELD_DYN_ARRAY_VAR_COUNT (
43 scale_objects,
44 scale_object_schema_v1),
45 YAML_FIELD_DYN_ARRAY_VAR_COUNT (TimelineSelections_v1, markers, marker_schema_v1),
46 YAML_FIELD_INT (TimelineSelections_v1, region_track_vis_index),
47 YAML_FIELD_INT (TimelineSelections_v1, chord_track_vis_index),
48 YAML_FIELD_INT (TimelineSelections_v1, marker_track_vis_index),
49
50 CYAML_FIELD_END
51};
52
53static const cyaml_schema_value_t timeline_selections_schema_v1 = {
54 YAML_VALUE_PTR (TimelineSelections_v1, timeline_selections_fields_schema_v1),
55};
56
57#endif
ArrangerSelections schema.
Marker schema.
Region schema.
Scale object schema.
YAML utils.