Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
curve_preset.h
1// SPDX-FileCopyrightText: © 2020, 2023-2024 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#ifndef ZRYTHM_GUI_CURVE_PRESET_H
5#define ZRYTHM_GUI_CURVE_PRESET_H
6
7#include <string>
8#include <utility>
9#include <vector>
10
11#include "dsp/curve.h"
12
13struct CurvePreset final
14{
15 // Rule of 0
16 CurvePreset () = default;
17 CurvePreset (
18 std::string id,
19 QString label,
21 double curviness);
22
26 static std::vector<CurvePreset> get_fade_presets ();
27
29 std::string id_;
30 QString label_;
31};
32
33#if 0
34gboolean
35curve_algorithm_get_g_settings_mapping (
36 GValue * value,
37 GVariant * variant,
38 gpointer user_data);
39
40GVariant *
41curve_algorithm_set_g_settings_mapping (
42 const GValue * value,
43 const GVariantType * expected_type,
44 gpointer user_data);
45#endif
46
47#endif
Curve options.
Definition curve.h:22
Algorithm
The algorithm to use for curves.
Definition curve.h:32
static std::vector< CurvePreset > get_fade_presets()
Returns an array of CurveFadePreset.