Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
automation_function.h
1// SPDX-FileCopyrightText: © 2020, 2024-2025 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#pragma once
5
6#include "structure/arrangement/arranger_object_span.h"
7#include "utils/format.h"
8
9namespace zrythm::structure::arrangement
10{
11
13{
14public:
15 enum class Type
16 {
17 FlipHorizontal,
18 FlipVertical,
19 Flatten,
20 };
21
29 static void apply (ArrangerObjectSpan sel, Type type);
30};
31
32}
33
34DEFINE_ENUM_FORMATTER (
35 zrythm::structure::arrangement::AutomationFunction::Type,
36 AutomationFunctionType,
37 QT_TR_NOOP_UTF8 ("Flip H"),
38 QT_TR_NOOP_UTF8 ("Flip V"),
39 QT_TR_NOOP_UTF8 ("Flatten"));
Track span that offers helper methods on a range of tracks.
static void apply(ArrangerObjectSpan sel, Type type)
Applies the given action to the given selections.