Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
clip_editor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __SCHEMAS_GUI_BACKEND_CLIP_EDITOR_H__
11#define __SCHEMAS_GUI_BACKEND_CLIP_EDITOR_H__
12
18
19typedef struct ClipEditor_v1
20{
21 int schema_version;
22 RegionIdentifier_v1 region_id;
23 bool has_region;
24 PianoRoll_v1 * piano_roll;
25 AudioClipEditor_v1 * audio_clip_editor;
26 AutomationEditor_v1 * automation_editor;
27 ChordEditor_v1 * chord_editor;
28 int region_changed;
30
31static const cyaml_schema_field_t clip_editor_fields_schema_v1[] = {
32 YAML_FIELD_INT (ClipEditor_v1, schema_version),
33 YAML_FIELD_MAPPING_EMBEDDED (
35 region_id,
36 region_identifier_fields_schema_v1),
37 YAML_FIELD_INT (ClipEditor_v1, has_region),
38 YAML_FIELD_MAPPING_PTR (ClipEditor_v1, piano_roll, piano_roll_fields_schema_v1),
39 YAML_FIELD_MAPPING_PTR (
41 automation_editor,
42 automation_editor_fields_schema_v1),
43 YAML_FIELD_MAPPING_PTR (
45 chord_editor,
46 chord_editor_fields_schema_v1),
47 YAML_FIELD_MAPPING_PTR (
49 audio_clip_editor,
50 audio_clip_editor_fields_schema_v1),
51
52 CYAML_FIELD_END
53};
54
55static const cyaml_schema_value_t clip_editor_schema_v1 = {
56 YAML_VALUE_PTR (ClipEditor_v1, clip_editor_fields_schema_v1),
57};
58
59#endif
Audio clip editor schema.
Automation editor schema.
Chord editor schema.
Piano roll backend.
Region identifier schema.