Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_preset_pack_manager.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2022-2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __SETTINGS_CHORD_PRESET_PACK_MANAGERH__
11#define __SETTINGS_CHORD_PRESET_PACK_MANAGERH__
12
13#include "zrythm-config.h"
14
16
23#define CHORD_PRESET_PACK_MANAGER (gZrythm->chord_preset_pack_manager)
24
29{
33 GPtrArray * pset_packs;
35
43chord_preset_pack_manager_new (bool scan_for_packs);
44
45int
46chord_preset_pack_manager_get_num_packs (const ChordPresetPackManager * self);
47
49chord_preset_pack_manager_get_pack_at (
50 const ChordPresetPackManager * self,
51 int idx);
52
53NONNULL ChordPresetPack *
54chord_preset_pack_manager_get_pack_for_preset (
56 const ChordPreset * pset);
57
58int
59chord_preset_pack_manager_get_pack_index (
61 ChordPresetPack * pack);
62
66int
69 ChordPreset * pset);
70
74void
77 ChordPresetPack * pack,
78 const ChordPreset * pset,
79 bool serialize);
80
84void
87 const ChordPresetPack * pack,
88 bool serialize);
89
90void
91chord_preset_pack_manager_delete_pack (
93 ChordPresetPack * pack,
94 bool serialize);
95
96void
97chord_preset_pack_manager_delete_preset (
99 ChordPreset * pset,
100 bool serialize);
101
107WARN_UNUSED_RESULT bool
110 GError ** error);
111
112void
113chord_preset_pack_manager_free (const ChordPresetPackManager * self);
114
119#endif
Chord preset pack.
void chord_preset_pack_manager_add_preset(ChordPresetPackManager *self, ChordPresetPack *pack, const ChordPreset *pset, bool serialize)
Add a copy of the given preset.
WARN_UNUSED_RESULT bool chord_preset_pack_manager_serialize(ChordPresetPackManager *self, GError **error)
Serializes the chord presets.
int chord_preset_pack_manager_get_pset_index(ChordPresetPackManager *self, ChordPreset *pset)
Returns the preset index in its pack.
ChordPresetPackManager * chord_preset_pack_manager_new(bool scan_for_packs)
Creates a new chord preset pack manager.
void chord_preset_pack_manager_add_pack(ChordPresetPackManager *self, const ChordPresetPack *pack, bool serialize)
Add a copy of the given pack.
Chord preset pack manager.
GPtrArray * pset_packs
Scanned preset packs.
Chord preset pack.
A preset of chord descriptors.