36 class AccidentalState;
79 virtual qreal upPos()
const;
80 virtual qreal downPos()
const;
81 qreal centerX()
const;
82 void addLedgerLines();
83 void processSiblings(std::function<
void(
Element*)> func)
const;
86 void layoutTablature();
87 qreal noteHeadWidth()
const;
97 virtual void undoUnlink()
override;
99 virtual void setScore(
Score* s)
override;
101 virtual qreal mag()
const;
103 virtual void write(
XmlWriter& xml)
const override;
105 virtual bool readProperties(
XmlReader&)
override;
113 qreal defaultStemLength()
const;
114 qreal minAbsStemLength()
const;
116 virtual void layoutStem1()
override;
118 void layoutArpeggio2();
120 std::vector<Note*>&
notes() {
return _notes; }
121 const std::vector<Note*>&
notes()
const {
return _notes; }
124 Note* upNote()
const;
125 Note* downNote()
const;
126 virtual int upString()
const;
127 virtual int downString()
const;
129 qreal maxHeadWidth()
const;
131 Note* findNote(
int pitch,
int skip = 0)
const;
139 void updateEndsGlissando();
142 void setSlash(
bool flag,
bool stemless);
143 virtual void removeMarkings(
bool keepTremolo =
false)
override;
145 const QVector<Chord*>&
graceNotes()
const {
return _graceNotes; }
148 QVector<Chord*> graceNotesBefore()
const;
149 QVector<Chord*> graceNotesAfter()
const;
154 virtual int upLine()
const;
155 virtual int downLine()
const;
156 virtual QPointF stemPos()
const;
157 virtual QPointF stemPosBeam()
const;
158 virtual qreal stemPosX()
const;
160 bool underBeam()
const;
168 Note* selectedNote()
const;
169 virtual void layout();
170 virtual QPointF pagePos()
const override;
178 virtual void scanElements(
void* data,
void (*func)(
void*,
Element*),
bool all=
true)
override;
180 virtual void setTrack(
int val)
override;
182 virtual void computeUp()
override;
184 qreal dotPosX()
const;
191 QList<NoteEventList> getNoteEventLists();
192 void setNoteEventLists(QList<NoteEventList>& nel);
196 void layoutArticulations();
197 void layoutArticulations2();
198 void layoutArticulations3(
Slur* s);
201 const QVector<Articulation*>&
articulations()
const {
return _articulations; }
205 virtual void crossMeasureSetup(
bool on);
207 virtual void localSpatiumChanged(qreal oldValue, qreal newValue)
override;
209 virtual bool setProperty(
Pid propertyId,
const QVariant&)
override;
210 virtual QVariant propertyDefault(
Pid)
const override;
212 virtual void reset();
214 virtual Segment* segment()
const;
215 virtual Measure* measure()
const;
219 Chord* nextTiedChord(
bool backwards =
false,
bool sameSize =
true);
221 virtual Element* nextElement()
override;
222 virtual Element* prevElement()
override;
223 virtual Element* nextSegmentElement()
override;
224 virtual Element* lastElementBeforeSegment();
225 virtual Element* prevSegmentElement()
override;
226 virtual QString accessibleExtraInfo()
const override;
228 virtual Shape shape()
const override;
StemSlash * stemSlash() const
Definition: chord.h:140
bool noStem() const
Definition: chord.h:186
virtual Chord * clone() const
Definition: chord.h:95
QVector< Articulation * > _articulations
Definition: chord.h:77
Direction stemDirection() const
Definition: chord.h:109
Tremolo * _tremolo
Definition: chord.h:64
Pid
Definition: property.h:62
void setPlayEventType(PlayEventType v)
Definition: chord.h:190
PlayEventType playEventType() const
Definition: chord.h:189
Graphic representation of a note stem.
Definition: stem.h:27
bool _endsGlissando
true if this chord is the ending point of a glissando (needed for layout)
Definition: chord.h:65
one measure in a system
Definition: measure.h:65
void setGraceIndex(int val)
Definition: chord.h:152
bool endsGlissando() const
Definition: chord.h:137
Arpeggio * arpeggio() const
Definition: chord.h:134
QVector< Chord * > _graceNotes
Definition: chord.h:66
std::vector< Note * > _notes
Definition: chord.h:56
NoteType noteType() const
Definition: chord.h:174
Base class of score layout elements.
Definition: element.h:158
PlayEventType _playEventType
play events were modified by user
Definition: chord.h:72
int graceIndex() const
Definition: chord.h:151
Stem * _stem
Definition: chord.h:59
PlayEventType
Determines whether oranaments are automatically generated when playing a score and whether the PlayEv...
Definition: types.h:489
Definition: arpeggio.h:30
QVector< Chord * > & graceNotes()
Definition: chord.h:146
const std::vector< Note * > & notes() const
Definition: chord.h:121
virtual Element * linkedClone()
Definition: chord.h:96
NoteType _noteType
mark grace notes: acciaccatura and appoggiatura
Definition: chord.h:70
Hook * _hook
Definition: chord.h:60
Hook * hook() const
Definition: chord.h:161
qreal _spaceLw
Definition: chord.h:74
bool _noStem
Definition: chord.h:71
virtual ElementType type() const
Definition: chord.h:100
bool isGrace() const
Definition: chord.h:176
articulation marks
Definition: articulation.h:57
void setNoStem(bool val)
Definition: chord.h:187
used for grace notes of type acciaccatura
Definition: stemslash.h:26
Arpeggio * _arpeggio
Definition: chord.h:63
StemSlash * _stemSlash
Definition: chord.h:61
int _graceIndex
if this is a grace note, index in parent list
Definition: chord.h:67
Definition: aeolus.cpp:26
void setEndsGlissando(bool val)
Definition: chord.h:138
TremoloChordType
Definition: chord.h:38
Stem * stem() const
Definition: chord.h:133
NoteType
Definition: types.h:255
Tremolo * tremolo() const
Definition: chord.h:135
void setStemDirection(Direction d)
Definition: chord.h:108
Graphic representation of a chord.
Definition: chord.h:55
Direction _stemDirection
Definition: chord.h:69
Definition: chordrest.h:48
const QVector< Chord * > & graceNotes() const
Definition: chord.h:145
Direction
Definition: types.h:282
Definition: element.h:111
qreal _spaceRw
Definition: chord.h:75
QVector< Articulation * > & articulations()
Definition: chord.h:200
LedgerLine * _ledgerLines
Definition: chord.h:57
bool hasSingleArticulation() const
Definition: chord.h:203
LedgerLine * ledgerLines()
Definition: chord.h:111
Graphic representation of a note.
Definition: note.h:212
Graphic representation of a ledger line.
Definition: ledgerline.h:31
ElementType
Definition: types.h:34
void setNoteType(NoteType t)
Definition: chord.h:175
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
const QVector< Articulation * > & articulations() const
Definition: chord.h:201
std::vector< Note * > & notes()
Definition: chord.h:120