Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_preset_pack.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __SETTINGS_CHORD_PRESET_PACK_H__
11#define __SETTINGS_CHORD_PRESET_PACK_H__
12
13#include "zrythm-config.h"
14
16#include "utils/yaml.h"
17
27typedef struct ChordPresetPack
28{
30 char * name;
31
33 GPtrArray * presets;
34
38
40chord_preset_pack_new_empty (void);
41
43chord_preset_pack_new (const char * name, bool is_standard);
44
45bool
46chord_preset_pack_contains_name (const ChordPresetPack * self, const char * name);
47
48bool
49chord_preset_pack_contains_preset (
50 const ChordPresetPack * self,
51 const ChordPreset * pset);
52
53char *
54chord_preset_pack_serialize_to_json_str (
55 const ChordPresetPack * self,
56 GError ** error);
57
59chord_preset_pack_deserialize_from_json_str (const char * json, GError ** error);
60
65void
67
68void
69chord_preset_pack_delete_preset (ChordPresetPack * self, ChordPreset * pset);
70
71const char *
72chord_preset_pack_get_name (const ChordPresetPack * self);
73
74void
75chord_preset_pack_set_name (ChordPresetPack * self, const char * name);
76
78chord_preset_pack_clone (const ChordPresetPack * src);
79
80GMenuModel *
81chord_preset_pack_generate_context_menu (const ChordPresetPack * self);
82
83void
84chord_preset_pack_free (ChordPresetPack * self);
85
86void
87chord_preset_pack_destroy_cb (void * self);
88
93#endif
Chord preset.
void chord_preset_pack_add_preset(ChordPresetPack *self, const ChordPreset *pset)
Chord preset pack.
bool is_standard
Whether this is a standard preset pack (not user-defined).
GPtrArray * presets
Presets.
char * name
Pack name.
A preset of chord descriptors.
YAML utils.