Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
ChordPreset Class Reference

A named collection of chord descriptors, optionally grouped by category. More...

#include <src/dsp/chord_preset.h>

Inheritance diagram for ChordPreset:
Collaboration diagram for ChordPreset:

Public Member Functions

 ChordPreset (QObject *parent=nullptr)
 ChordPreset (const QString &name, QObject *parent=nullptr)
 ChordPreset (const QString &name, const QString &category, bool is_builtin, QObject *parent=nullptr)
QString name () const
void setName (const QString &name)
Q_SIGNAL void nameChanged (const QString &name)
QString category () const
void setCategory (const QString &category)
Q_SIGNAL void categoryChanged (const QString &category)
bool isBuiltin () const
Q_INVOKABLE QString infoText () const
 Informational text describing the preset's chords.
std::span< const zrythm::utils::QObjectUniquePtr< zrythm::dsp::ChordDescriptor > > descriptors () const
void addDescriptor (zrythm::utils::QObjectUniquePtr< zrythm::dsp::ChordDescriptor > &&descr)

Properties

QString name
QString category
bool isBuiltin

Friends

bool operator== (const ChordPreset &lhs, const ChordPreset &rhs)
void init_from (ChordPreset &obj, const ChordPreset &other, zrythm::utils::ObjectCloneType clone_type)
void to_json (nlohmann::json &j, const ChordPreset &preset)
void from_json (const nlohmann::json &j, ChordPreset &preset)

Detailed Description

A named collection of chord descriptors, optionally grouped by category.

Used by ChordPresetManager for built-in and user presets, and by ChordPadBank for applying presets to the chord pad.

Definition at line 20 of file chord_preset.h.

Member Function Documentation

◆ descriptors()

std::span< const zrythm::utils::QObjectUniquePtr< zrythm::dsp::ChordDescriptor > > ChordPreset::descriptors ( ) const
inline

Definition at line 61 of file chord_preset.h.

◆ isBuiltin()

bool ChordPreset::isBuiltin ( ) const
inline

Definition at line 49 of file chord_preset.h.

Property Documentation

◆ category

QString ChordPreset::category
readwrite

Definition at line 24 of file chord_preset.h.

◆ isBuiltin

bool ChordPreset::isBuiltin
read

Definition at line 25 of file chord_preset.h.

◆ name

QString ChordPreset::name
readwrite

Definition at line 23 of file chord_preset.h.


The documentation for this class was generated from the following file: