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 <QObject>
9
#include <QtQmlIntegration/qqmlintegration.h>
10
11
namespace
zrythm::utils
12
{
13
Q_NAMESPACE
14
15
enum class
NoteLength
16
{
17
Bar,
18
Beat,
19
Note_2_1,
20
Note_1_1,
21
Note_1_2,
22
Note_1_4,
23
Note_1_8,
24
Note_1_16,
25
Note_1_32,
26
Note_1_64,
27
Note_1_128
28
};
29
Q_ENUM_NS (NoteLength);
30
31
enum class
NoteType
32
{
33
Normal,
34
Dotted
,
35
Triplet
36
};
37
Q_ENUM_NS (
NoteType
)
38
39
std::string_view
40
note_length_to_str (NoteLength len);
41
42
std::string_view
43
note_type_to_str (
NoteType
type);
44
45
};
// namespace zrythm::utils
zrythm::utils
String utilities.
Definition
algorithms.h:12
zrythm::utils::NoteType
NoteType
Definition
note_type.h:32
zrythm::utils::NoteType::Triplet
@ Triplet
3/2 of its original size
Definition
note_type.h:35
zrythm::utils::NoteType::Dotted
@ Dotted
2/3 of its original size
Definition
note_type.h:34
src
utils
note_type.h
Generated by
1.15.0