13 #ifndef __CHORDLIST_H__ 14 #define __CHORDLIST_H__ 38 int value()
const {
return _value; }
39 int alter()
const {
return _alter; }
57 HChord(
int a,
int b,
int c=-1,
int d=-1,
int e=-1,
int f=-1,
int g=-1,
58 int h=-1,
int i=-1,
int k=-1,
int l=-1);
61 void rotate(
int semiTones);
64 return (1 << (key % 12)) & keys;
67 keys |= (1 << (key % 12));
71 keys &= ~(1 << (key % 12));
80 QString name(
int tpc)
const;
81 QString voicing()
const;
82 void add(
const QList<HDegree>& degreeList);
127 bool parse(
const QString&,
const ChordList*,
bool syntaxOnly =
false,
bool preferMinor =
false);
128 QString fromXml(
const QString&,
const QString&,
const QString&,
const QString&,
const QList<HDegree>&,
const ChordList*);
129 const QList<RenderAction>& renderList(
const ChordList*);
132 const QString&
name()
const {
return _name; }
133 const QString&
quality()
const {
return _quality; }
136 const QString&
xmlKind()
const {
return _xmlKind; }
137 const QString&
xmlText()
const {
return _xmlText; }
140 const QStringList&
xmlDegrees()
const {
return _xmlDegrees; }
141 int keys()
const {
return chord.getKeys(); }
142 const QString&
handle()
const {
return _handle; }
143 operator QString()
const {
return _handle; }
161 QStringList major, minor, diminished, augmented, lower,
raise, mod1, mod2,
symbols;
166 void correctXmlText(
const QString& s =
"");
213 bool isValid()
const {
return fontIdx != -1; }
232 bool _autoAdjust =
false;
233 qreal _nmag = 1.0, _nadjust = 0.0;
234 qreal _emag = 1.0, _eadjust = 0.0;
235 qreal _mmag = 1.0, _madjust = 0.0;
248 void configureAutoAdjust(qreal emag = 1.0, qreal eadjust = 0.0, qreal mmag = 1.0, qreal madjust = 0.0);
253 bool read(
const QString&);
254 bool write(
const QString&)
const;
QStringList xmlDegrees
Definition: chordlist.h:184
HChord chord
Definition: chordlist.h:185
RenderActionType type
Definition: chordlist.h:95
Definition: chordlist.h:174
RenderAction()
Definition: chordlist.h:99
QString xmlText
Definition: chordlist.h:181
bool operator==(const ParsedChord &c) const
Definition: chordlist.h:144
HDegree()
Definition: chordlist.h:36
QString fontClass
Definition: chordlist.h:222
int fontIdx
Definition: chordlist.h:207
QString name
Definition: chordlist.h:208
HDegreeType type() const
Definition: chordlist.h:40
Definition: editdrumset.cpp:32
RenderActionType
Definition: chordlist.h:90
QStringList names
Definition: chordlist.h:176
Definition: chordlist.h:206
QString xmlKind
Definition: chordlist.h:180
int _alter
Definition: chordlist.h:32
Definition: chordlist.h:89
Definition: chordlist.h:112
QChar code
Definition: chordlist.h:210
Definition: chordlist.h:230
QString xmlSymbols
Definition: chordlist.h:182
QString xmlParens
Definition: chordlist.h:183
const QString & handle() const
Definition: chordlist.h:142
bool autoAdjust() const
Definition: chordlist.h:245
HDegreeType _type
Definition: chordlist.h:33
QList< ChordToken > chordTokenList
Definition: chordlist.h:242
QList< RenderAction > renderListRoot
Definition: chordlist.h:239
bool _parseable
Definition: chordlist.h:163
int _value
Definition: chordlist.h:31
QList< ChordToken > _tokenList
Definition: chordlist.h:154
QString _quality
Definition: chordlist.h:150
HChord chord
Definition: chordlist.h:162
Definition: chordlist.h:125
bool parseable() const
Definition: chordlist.h:130
QString _modifiers
Definition: chordlist.h:152
const QString & xmlKind() const
Definition: chordlist.h:136
const QString & xmlParens() const
Definition: chordlist.h:139
QString _xmlText
Definition: chordlist.h:157
bool contains(int key) const
Definition: chordlist.h:63
HChord(int k)
Definition: chordlist.h:56
bool renderListGenerated
Definition: chordlist.h:188
RenderAction(RenderActionType t)
Definition: chordlist.h:100
const QString & xmlSymbols() const
Definition: chordlist.h:138
QString text
Definition: chordlist.h:97
QString family
Definition: chordlist.h:221
QString _xmlKind
Definition: chordlist.h:156
QStringList _modifierList
Definition: chordlist.h:153
qreal nominalMag() const
Definition: chordlist.h:246
ChordSymbol symbol(const QString &s) const
Definition: chordlist.h:257
QMap< QString, ChordSymbol > symbols
Definition: chordlist.h:231
ChordTokenClass
Definition: chordlist.h:108
ChordSymbol()
Definition: chordlist.h:212
int alter() const
Definition: chordlist.h:39
const QString & xmlText() const
Definition: chordlist.h:137
qreal nominalAdjust() const
Definition: chordlist.h:247
const QString & quality() const
Definition: chordlist.h:133
QString _extension
Definition: chordlist.h:151
int keys() const
Definition: chordlist.h:141
QList< RenderAction > renderListBase
Definition: chordlist.h:241
QString value
Definition: chordlist.h:209
ChordTokenClass tokenClass
Definition: chordlist.h:114
Definition: aeolus.cpp:26
HDegreeType
Definition: chordlist.h:26
bool generated
Definition: chordlist.h:187
qreal mag
Definition: chordlist.h:223
bool _understandable
Definition: chordlist.h:164
int id
Definition: chordlist.h:175
const QString & modifiers() const
Definition: chordlist.h:135
QString _quality
Definition: chordlist.h:190
QList< RenderAction > renderListFunction
Definition: chordlist.h:240
const QString & extension() const
Definition: chordlist.h:134
bool operator==(const HChord &o) const
Definition: chordlist.h:74
bool exportOk
Definition: chordlist.h:189
QString _name
Definition: chordlist.h:148
const QStringList & xmlDegrees() const
Definition: chordlist.h:140
Definition: xmlwriter.h:26
QList< ParsedChord > parsedChords
Definition: chordlist.h:178
QString _xmlParens
Definition: chordlist.h:159
static int privateID
Definition: chordlist.h:243
Definition: chordlist.h:30
int keys
Definition: chordlist.h:52
qreal movey
Definition: chordlist.h:96
Definition: chordlist.h:48
QString _xmlSymbols
Definition: chordlist.h:158
QList< ChordFont > fonts
Definition: chordlist.h:238
Definition: xmlreader.h:28
QList< RenderAction > renderList
Definition: chordlist.h:116
int tpc(int idx, int pitch, int opt)
Definition: pitchspelling.cpp:539
QStringList names
Definition: chordlist.h:115
const QString & name() const
Definition: chordlist.h:132
HChord()
Definition: chordlist.h:55
bool operator!=(const ParsedChord &c) const
Definition: chordlist.h:145
QStringList symbols
Definition: chordlist.h:161
Definition: chordlist.h:220
bool operator!=(const HChord &o) const
Definition: chordlist.h:75
QStringList _xmlDegrees
Definition: chordlist.h:160
ChordDescription()
Definition: chordlist.h:193
int getKeys() const
Definition: chordlist.h:77
QString quality() const
Definition: chordlist.h:196
QList< RenderAction > _renderList
Definition: chordlist.h:155
QList< RenderAction > renderList
Definition: chordlist.h:186
QString _handle
Definition: chordlist.h:149
HDegree(int v, int a, HDegreeType t)
Definition: chordlist.h:37
int value() const
Definition: chordlist.h:38
bool isValid() const
Definition: chordlist.h:213
QString str
Definition: chordlist.h:49
bool understandable() const
Definition: chordlist.h:131