Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chords.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2024 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __IO_SERIALIZATION_CHORD_PRESETS_H__
11#define __IO_SERIALIZATION_CHORD_PRESETS_H__
12
13#include "utils/types.h"
14
15#include <glib.h>
16
17#include <yyjson.h>
18
19TYPEDEF_STRUCT (ChordPreset);
20TYPEDEF_STRUCT (ChordDescriptor);
21
22bool
23chord_descriptor_serialize_to_json (
24 yyjson_mut_doc * doc,
25 yyjson_mut_val * descr_obj,
26 const ChordDescriptor * descr,
27 GError ** error);
28
29bool
30chord_preset_serialize_to_json (
31 yyjson_mut_doc * doc,
32 yyjson_mut_val * pset_obj,
33 const ChordPreset * pset,
34 GError ** error);
35
36bool
37chord_descriptor_deserialize_from_json (
38 yyjson_doc * doc,
39 yyjson_val * descr_obj,
40 ChordDescriptor * descr,
41 GError ** error);
42
43bool
44chord_preset_deserialize_from_json (
45 yyjson_doc * doc,
46 yyjson_val * pset_obj,
47 ChordPreset * pset,
48 GError ** error);
49
50#endif /* __IO_SERIALIZATION_CHORD_PRESETS_H__ */
A ChordDescriptor describes a chord and is not linked to any specific object by itself.
A preset of chord descriptors.
Custom types.