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
10
namespace
zrythm::utils
11
{
12
Q_NAMESPACE
13
14
enum 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
};
28
Q_ENUM_NS (NoteLength);
29
30
enum class
NoteType
31
{
32
Normal,
33
Dotted
,
34
Triplet
35
};
36
Q_ENUM_NS (
NoteType
)
37
38
std::string_view
39
note_length_to_str (NoteLength len);
40
41
std::string_view
42
note_type_to_str (
NoteType
type);
43
44
};
// namespace zrythm::utils
zrythm::utils
String utilities.
Definition
algorithms.h:12
zrythm::utils::NoteType
NoteType
Definition
note_type.h:31
zrythm::utils::NoteType::Triplet
@ Triplet
3/2 of its original size
Definition
note_type.h:34
zrythm::utils::NoteType::Dotted
@ Dotted
2/3 of its original size
Definition
note_type.h:33
src
utils
note_type.h
Generated by
1.15.0