69 static inline bool operator< (
Key a,
Key b) {
return static_cast<int>(a) < static_cast<int>(b); }
70 static inline bool operator> (
Key a,
Key b) {
return static_cast<int>(a) > static_cast<int>(b); }
71 static inline bool operator> (
Key a,
int b) {
return static_cast<int>(a) > b; }
72 static inline bool operator< (
Key a,
int b) {
return static_cast<int>(a) < b; }
73 static inline bool operator== (
const Key a,
const Key b) {
return int(a) == int(b); }
74 static inline bool operator!= (
const Key a,
const Key b) {
return static_cast<int>(a) != static_cast<int>(b); }
75 static inline Key operator+= (
Key& a,
const Key& b) {
return a =
Key(static_cast<int>(a) + static_cast<int>(b)); }
76 static inline Key operator-= (
Key& a,
const Key& b) {
return a =
Key(static_cast<int>(a) - static_cast<int>(b)); }
98 bool _custom {
false };
101 void enforceLimits();
120 void initFromSubtype(
int);
122 const QList<KeySym>&
keySymbols()
const {
return _keySymbols; }
130 static const int TIE_CONTEXT = 0x10;
131 static const int MIN_ACC_STATE = 0;
132 static const int MAX_ACC_STATE = 75;
135 uchar state[MAX_ACC_STATE];
143 bool tieContext(
int line)
const;
144 void setAccidentalVal(
int line,
AccidentalVal val,
bool tieContext =
false);
AccidentalVal
Definition: mscore.h:147
KeyMode
Definition: key.h:55
QList< KeySym > _keySymbols
Definition: key.h:99
SymId
Definition: sym.h:30
void setMode(KeyMode m)
Definition: key.h:115
AccidentalState()
Definition: key.h:138
const QList< KeySym > & keySymbols() const
Definition: key.h:122
bool operator!=(const KeySigEvent &e) const
Definition: key.h:108
QPointF pos
Definition: key.h:88
KeyMode mode() const
Definition: key.h:114
Definition: interval.h:22
bool isValid() const
Definition: key.h:118
Definition: aeolus.cpp:26
Key key() const
Definition: key.h:113
Definition: xmlwriter.h:26
KeySigEvent()
Definition: key.h:104
Key transposeKey(Key key, const Interval &interval)
Definition: key.cpp:108
Definition: xmlreader.h:28
bool custom() const
Definition: key.h:116
bool isAtonal() const
Definition: key.h:119
ClefType
Definition: clef.h:37
SymId sym
Definition: key.h:86
QPointF spos
Definition: key.h:87
void setCustom(bool val)
Definition: key.h:117
QList< KeySym > & keySymbols()
Definition: key.h:121