Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
automation_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
10#ifndef __GUI_BACKEND_AUTOMATION_EDITOR_H__
11#define __GUI_BACKEND_AUTOMATION_EDITOR_H__
12
14#include "utils/yaml.h"
15
22#define AUTOMATION_EDITOR_SCHEMA_VERSION 1
23
24#define AUTOMATION_EDITOR (CLIP_EDITOR->automation_editor)
25
26typedef struct ZRegion ZRegion;
27
31typedef struct AutomationEditor
32{
33 int schema_version;
34 EditorSettings editor_settings;
36
37static const cyaml_schema_field_t automation_editor_fields_schema[] = {
38 YAML_FIELD_INT (AutomationEditor, schema_version),
41 editor_settings,
42 editor_settings_fields_schema),
43
44 CYAML_FIELD_END
45};
46
47static const cyaml_schema_value_t automation_editor_schema = {
48 YAML_VALUE_PTR (AutomationEditor, automation_editor_fields_schema),
49};
50
55void
57
61void
63
65automation_editor_clone (AutomationEditor * src);
66
68automation_editor_new (void);
69
70void
71automation_editor_free (AutomationEditor * self);
72
77#endif
Common editor settings.
void automation_editor_init(AutomationEditor *self)
Initializes the AutomationEditor.
void automation_editor_init_loaded(AutomationEditor *self)
Inits the AutomationEditor after a Project has been loaded.
#define YAML_FIELD_MAPPING_EMBEDDED(owner, member, schema)
Mapping embedded inside the struct.
Definition yaml.h:31
#define YAML_VALUE_PTR(cc, fields_schema)
Schema to be used as a pointer.
Definition yaml.h:202
Backend for the automation editor.
Common editor settings.
A region (clip) is an object on the timeline that contains either MidiNote's or AudioClip's.
Definition region.h:77
YAML utils.