Zrythm
v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_highlighter.h
1
// SPDX-FileCopyrightText: © 2026 Alexandros Theodotou <alex@zrythm.org>
2
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4
#pragma once
5
6
#include <QColor>
7
#include <QObject>
8
#include <QVariantList>
9
#include <QtQmlIntegration/qqmlintegration.h>
10
11
namespace
zrythm::dsp
12
{
13
class
ChordDescriptor
;
14
class
MusicalScale
;
15
}
16
17
namespace
zrythm::gui::qquick
18
{
19
20
class
ChordHighlighter
:
public
QObject
21
{
22
Q_OBJECT
23
QML_ELEMENT
24
QML_SINGLETON
25
26
public
:
27
Q_INVOKABLE
static
QColor highlightColorForNote (
28
QColor base,
29
int
note,
30
zrythm::dsp::ChordDescriptor
* chord,
31
zrythm::dsp::MusicalScale
* scale,
32
int
highlightMode,
33
qreal alphaScale);
34
35
Q_INVOKABLE
static
QVariantList highlightColors (
36
QColor base,
37
zrythm::dsp::ChordDescriptor
* chord,
38
zrythm::dsp::MusicalScale
* scale,
39
int
highlightMode,
40
qreal alphaScale);
41
};
42
43
}
// namespace zrythm::gui::qquick
zrythm::dsp::ChordDescriptor
Describes a musical chord by its root note, type, accent, inversion, and optional bass note.
Definition
chord_descriptor.h:120
zrythm::dsp::MusicalScale
Musical scale descriptor.
Definition
musical_scale.h:26
zrythm::gui::qquick::ChordHighlighter
Definition
chord_highlighter.h:21
src
gui
qquick
chord_highlighter.h
Generated by
1.16.1