Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
quantize_options.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_AUDIO_QUANTIZE_OPTIONS_H__
11#define __SCHEMAS_AUDIO_QUANTIZE_OPTIONS_H__
12
15
16typedef struct QuantizeOptions_v1
17{
18 int schema_version;
19 NoteLength_v1 note_length;
20 NoteType_v1 note_type;
21 float amount;
22 int adj_start;
23 int adj_end;
24 float swing;
25 double rand_ticks;
26 Position_v1 q_points[120096];
27 int num_q_points;
29
30static const cyaml_schema_field_t quantize_options_fields_schema_v1[] = {
31 YAML_FIELD_INT (QuantizeOptions_v1, schema_version),
32 YAML_FIELD_ENUM (QuantizeOptions_v1, note_length, note_length_strings_v1),
33 YAML_FIELD_ENUM (QuantizeOptions_v1, note_type, note_type_strings_v1),
34 YAML_FIELD_FLOAT (QuantizeOptions_v1, amount),
35 YAML_FIELD_INT (QuantizeOptions_v1, adj_start),
36 YAML_FIELD_INT (QuantizeOptions_v1, adj_end),
37 YAML_FIELD_FLOAT (QuantizeOptions_v1, swing),
38 YAML_FIELD_FLOAT (QuantizeOptions_v1, rand_ticks),
39
40 CYAML_FIELD_END
41};
42
43static const cyaml_schema_value_t quantize_options_schema_v1 = {
44 YAML_VALUE_PTR (QuantizeOptions_v1, quantize_options_fields_schema_v1),
45};
46
47#endif
Snap/grid schema.
Position schema.