22 int chordDescriptorIndex READ chordDescriptorIndex WRITE
23 setChordDescriptorIndex NOTIFY chordDescriptorIndexChanged)
28 ChordObject (
const dsp::TempoMap &tempo_map, QObject * parent =
nullptr);
34 int chordDescriptorIndex ()
const {
return chord_index_; }
35 void setChordDescriptorIndex (
int descr);
36 Q_SIGNAL
void chordDescriptorIndexChanged (
int);
41 friend void init_from (
43 const ChordObject &other,
46 static constexpr auto kChordIndexKey =
"chordIndex"sv;
47 friend void to_json (nlohmann::json &j,
const ChordObject &co)
50 j[kChordIndexKey] = co.chord_index_;
52 friend void from_json (
const nlohmann::json &j, ChordObject &co)
55 j.at (kChordIndexKey).get_to (co.chord_index_);
62 BOOST_DESCRIBE_CLASS (ChordObject, (
ArrangerObject), (), (), (chord_index_))