Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
ChordPreset Class Reference

A preset of chord descriptors. More...

#include <src/gui/backend/backend/settings/chord_preset.h>

Inheritance diagram for ChordPreset:
Collaboration diagram for ChordPreset:

Public Types

using NameT = QString

Public Member Functions

 ChordPreset (QObject *parent=nullptr)
 ChordPreset (const NameT &name, QObject *parent=nullptr)
NameT getName () const
void setName (const NameT &name)
Q_SIGNAL void nameChanged (const NameT &name)
utils::Utf8String get_info_text () const
 Gets informational text.

Data Fields

NameT name_
 Preset name.
std::vector< dsp::ChordDescriptor > descr_
 Chord descriptors.
ChordPresetPackpack_ = nullptr
 Pointer to owner pack.

Properties

QString name

Friends

void init_from (ChordPreset &obj, const ChordPreset &other, 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 preset of chord descriptors.

Definition at line 26 of file chord_preset.h.

Member Typedef Documentation

◆ NameT

using ChordPreset::NameT = QString

Definition at line 33 of file chord_preset.h.

◆ from_json

void from_json ( const nlohmann::json & j,
ChordPreset & preset )
friend

Definition at line 67 of file chord_preset.h.

◆ to_json

void to_json ( nlohmann::json & j,
const ChordPreset & preset )
friend

Definition at line 62 of file chord_preset.h.

Field Documentation

◆ descr_

std::vector<dsp::ChordDescriptor> ChordPreset::descr_

Chord descriptors.

Definition at line 78 of file chord_preset.h.

◆ name_

NameT ChordPreset::name_

Preset name.

Definition at line 75 of file chord_preset.h.

◆ pack_

ChordPresetPack* ChordPreset::pack_ = nullptr

Pointer to owner pack.

Definition at line 81 of file chord_preset.h.

Property Documentation

◆ name

QString ChordPreset::name
readwrite

Definition at line 29 of file chord_preset.h.


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