17class ChordPreset :
public QObject
20 Q_PROPERTY (QString name READ getName WRITE setName NOTIFY nameChanged)
24 using NameT = QString;
25 ChordPreset (QObject * parent =
nullptr);
26 ChordPreset (
const NameT &name, QObject * parent =
nullptr);
32 NameT getName ()
const;
33 void setName (
const NameT &name);
34 Q_SIGNAL
void nameChanged (
const NameT &name);
45 friend void init_from (
47 const ChordPreset &other,
51 static constexpr std::string_view kNameKey =
"name";
52 static constexpr std::string_view kDescriptorsKey =
"descriptors";
53 friend void to_json (nlohmann::json &j,
const ChordPreset &preset);
54 friend void from_json (
const nlohmann::json &j, ChordPreset &preset);
61 std::vector<zrythm::dsp::ChordDescriptor>
descr_;