Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
midi_note.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_MIDI_NOTE_H__
11#define __SCHEMAS_AUDIO_MIDI_NOTE_H__
12
15
16typedef struct MidiNote_v1
17{
19 int schema_version;
20 Velocity_v1 * vel;
21 uint8_t val;
22 int muted;
23 int pos;
25
26static const cyaml_schema_field_t midi_note_fields_schema_v1[] = {
27 YAML_FIELD_MAPPING_EMBEDDED (MidiNote_v1, base, arranger_object_fields_schema_v1),
28 YAML_FIELD_INT (MidiNote_v1, schema_version),
29 YAML_FIELD_MAPPING_PTR (MidiNote_v1, vel, velocity_fields_schema_v1),
30 YAML_FIELD_UINT (MidiNote_v1, val),
31 YAML_FIELD_INT (MidiNote_v1, muted),
32 YAML_FIELD_INT (MidiNote_v1, pos),
33 CYAML_FIELD_END
34};
35
36static const cyaml_schema_value_t midi_note_schema_v1 = {
37 YAML_VALUE_PTR_NULLABLE (MidiNote_v1, midi_note_fields_schema_v1),
38};
39
40#endif
Velocity schema.
Arranger object schema.