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