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
11namespace zrythm::dsp
12{
13class ChordDescriptor;
14class MusicalScale;
15}
16
17namespace zrythm::gui::qquick
18{
19
20class ChordHighlighter : public QObject
21{
22 Q_OBJECT
23 QML_ELEMENT
24 QML_SINGLETON
25
26public:
27 Q_INVOKABLE static QColor highlightColorForNote (
28 QColor base,
29 int note,
32 int highlightMode,
33 qreal alphaScale);
34
35 Q_INVOKABLE static QVariantList highlightColors (
36 QColor base,
39 int highlightMode,
40 qreal alphaScale);
41};
42
43} // namespace zrythm::gui::qquick
Describes a musical chord by its root note, type, accent, inversion, and optional bass note.
Musical scale descriptor.