Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
automation_point.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2018-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __SCHEMAS_AUDIO_AUTOMATION_POINT_H__
11#define __SCHEMAS_AUDIO_AUTOMATION_POINT_H__
12
15
16typedef struct AutomationPoint_v1
17{
19 int schema_version;
20 float fvalue;
21 float normalized_val;
22 CurveOptions_v1 curve_opts;
23 int index;
25
26static const cyaml_schema_field_t automation_point_fields_schema_v1[] = {
27 YAML_FIELD_MAPPING_EMBEDDED (
29 base,
30 arranger_object_fields_schema_v1),
31 YAML_FIELD_INT (AutomationPoint_v1, schema_version),
32 YAML_FIELD_FLOAT (AutomationPoint_v1, fvalue),
33 YAML_FIELD_FLOAT (AutomationPoint_v1, normalized_val),
34 YAML_FIELD_INT (AutomationPoint_v1, index),
35 YAML_FIELD_MAPPING_EMBEDDED (
37 curve_opts,
38 curve_options_fields_schema_v1),
39
40 CYAML_FIELD_END
41};
42
43static const cyaml_schema_value_t automation_point_schema_v1 = {
44 YAML_VALUE_PTR (AutomationPoint_v1, automation_point_fields_schema_v1),
45};
46
47#endif
Arranger object schema.
Curve schema.