Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
note_type.h
1// SPDX-FileCopyrightText: © 2018-2022, 2024-2025 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#pragma once
5
6#include <string_view>
7
8#include <QtQmlIntegration>
9
10namespace zrythm::utils
11{
12Q_NAMESPACE
13
14enum class NoteLength
15{
16 Bar,
17 Beat,
18 Note_2_1,
19 Note_1_1,
20 Note_1_2,
21 Note_1_4,
22 Note_1_8,
23 Note_1_16,
24 Note_1_32,
25 Note_1_64,
26 Note_1_128
27};
28Q_ENUM_NS (NoteLength);
29
30enum class NoteType
31{
32 Normal,
35};
36Q_ENUM_NS (NoteType)
37
38std::string_view
39note_length_to_str (NoteLength len);
40
41std::string_view
42note_type_to_str (NoteType type);
43
44}; // namespace zrythm::utils
String utilities.
Definition algorithms.h:12
@ Triplet
3/2 of its original size
Definition note_type.h:34
@ Dotted
2/3 of its original size
Definition note_type.h:33