Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
automation_function.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2020 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
12#ifndef __AUDIO_AUTOMATION_FUNCTION_H__
13#define __AUDIO_AUTOMATION_FUNCTION_H__
14
15#include "utils/yaml.h"
16
17#include <glib/gi18n.h>
18
20
27enum class AutomationFunctionType
28{
29 AUTOMATION_FUNCTION_FLIP_HORIZONTAL,
30 AUTOMATION_FUNCTION_FLIP_VERTICAL,
31 AUTOMATION_FUNCTION_FLATTEN,
32};
33
34static const char * automation_function_type_strings[] = {
35 N_ ("Flip H"),
36 N_ ("Flip V"),
37 N_ ("Flatten"),
38};
39
40static inline const char *
41automation_function_type_to_string (AutomationFunctionType type)
42{
43 return automation_function_type_strings[static_cast<int> (type)];
44}
45
52int
55 AutomationFunctionType type,
56 GError ** error);
57
62#endif
int automation_function_apply(ArrangerSelections *sel, AutomationFunctionType type, GError **error)
Applies the given action to the given selections.
ArrangerSelectionsType type
Type of selections.
YAML utils.