32 class InstrumentTemplate;
76 int _barLineSpan {
false };
77 int _barLineFrom { 0 };
80 bool _invisible {
false };
81 bool _cutaway {
false };
82 bool _showIfEmpty {
false };
83 bool _hideSystemBarLine {
false };
87 qreal _userDist { 0.0 };
94 bool _playbackVoice[
VOICES] {
true,
true,
true,
true };
99 void fillBrackets(
int);
100 void cleanBrackets();
105 void initFromStaffType(
const StaffType* staffType);
106 void init(
const Staff*);
111 QString partName()
const;
121 int bracketSpan(
int idx)
const;
123 void setBracketSpan(
int idx,
int val);
124 void swapBracket(
int oldIdx,
int newIdx);
125 void changeBracketColumn(
int oldColumn,
int newColumn);
127 const QList<BracketItem*>&
brackets()
const {
return _brackets; }
128 QList<BracketItem*>&
brackets() {
return _brackets; }
129 void cleanupBrackets();
130 int bracketLevels()
const;
141 void removeClef(
const Clef*);
165 bool stemless(
const Fraction&)
const;
184 qreal height()
const;
186 int channel(
const Fraction&,
int voice)
const;
203 void removeStaffType(
const Fraction&);
204 void staffTypeListChanged(
const Fraction&);
206 bool isPitchedStaff(
const Fraction&)
const;
207 bool isTabStaff(
const Fraction&)
const;
208 bool isDrumStaff(
const Fraction&)
const;
211 void setLines(
const Fraction&,
int lines);
212 qreal lineDistance(
const Fraction&)
const;
214 void setSlashStyle(
const Fraction&,
bool val);
215 int middleLine(
const Fraction&)
const;
216 int bottomLine(
const Fraction&)
const;
218 qreal userMag(
const Fraction&)
const;
219 void setUserMag(
const Fraction&, qreal m);
222 void setSmall(
const Fraction&,
bool val);
232 QList<Staff*> staffList()
const;
233 bool primaryStaff()
const;
238 void spatiumChanged(qreal , qreal );
239 void localSpatiumChanged(
double oldVal,
double newVal,
Fraction tick);
241 bool showLedgerLines(
const Fraction&)
const;
243 QColor
color()
const {
return _color; }
245 void undoSetColor(
const QColor& val);
248 virtual QVariant getProperty(
Pid)
const override;
249 virtual bool setProperty(
Pid,
const QVariant&)
override;
250 virtual QVariant propertyDefault(
Pid)
const override;
258 void dumpClefs(
const char* title)
const;
259 void dumpKeys(
const char* title)
const;
260 void dumpTimeSigs(
const char*)
const;
262 void dumpClefs(
const char*)
const {}
263 void dumpKeys(
const char*)
const {}
264 void dumpTimeSigs(
const char*)
const {}
267 void triggerLayout();
268 void triggerLayout(
const Fraction& tick);
int swingUnit
Definition: staff.h:53
QList< BracketItem * > & brackets()
Definition: staff.h:128
int swingRatio
Definition: staff.h:54
Definition: bracketItem.h:25
virtual ElementType type() const override
Definition: staff.h:108
Global staff data not directly related to drawing.
Definition: staff.h:62
ClefList clefs
Definition: staff.h:69
bool showIfEmpty() const
Definition: staff.h:170
VeloList List of note velocity changes.
Definition: velo.h:42
Pid
Definition: property.h:62
This class represents a time signature.
Definition: timesig.h:41
Part * part() const
Definition: staff.h:117
int barLineFrom() const
Definition: staff.h:179
Definition: cleflist.h:27
bool invisible() const
Definition: staff.h:166
const QList< BracketItem * > & brackets() const
Definition: staff.h:127
QMap< int, SwingParameters > _swingList
Definition: staff.h:92
void insertIntoSwingList(const Fraction &tick, SwingParameters sp)
Definition: staff.h:192
Definition: scoreElement.h:173
void setHideSystemBarLine(bool val)
Definition: staff.h:174
std::map< int, TimeSig * > timesigs
Definition: staff.h:73
int barLineTo() const
Definition: staff.h:180
qreal userDist() const
Definition: staff.h:235
Definition: stafftypelist.h:28
void insertIntoCapoList(const Fraction &tick, int fretId)
Definition: staff.h:196
ClefTypeList _defaultClefType
Definition: staff.h:70
Graphic representation of a clef.
Definition: clef.h:132
void setShowIfEmpty(bool val)
Definition: staff.h:171
HideMode
Definition: staff.h:64
GroupNodes must be sorted by tick.
Definition: groups.h:48
PitchList & pitchOffsets()
Definition: staff.h:227
ClefList & clefList()
Definition: staff.h:132
QList< BracketItem * > _brackets
Definition: staff.h:75
static QColor defaultColor
Definition: mscore.h:328
int barLineSpan() const
Definition: staff.h:178
#define VOICES
Definition: mscore.h:72
bool playbackVoice(int voice) const
Definition: staff.h:254
void insertIntoChannelList(int voice, const Fraction &tick, int channelId)
Definition: staff.h:188
void clearSwingList()
Definition: staff.h:191
HideMode hideWhenEmpty() const
Definition: staff.h:175
int pitchOffset(int tick) const
Definition: pitch.cpp:22
void setPlaybackVoice(int voice, bool val)
Definition: staff.h:255
QMap< int, int > _capoList
Definition: staff.h:93
void setBarLineTo(int val)
Definition: staff.h:183
Definition: aeolus.cpp:26
StaffTypeList _staffTypeList
Definition: staff.h:89
void setUserDist(qreal val)
Definition: staff.h:236
Definition: stafftype.h:173
void setInvisible(bool val)
Definition: staff.h:167
VeloList & velocities()
Definition: staff.h:226
void setBarLineFrom(int val)
Definition: staff.h:182
PitchList List of note pitch offsets.
Definition: pitch.h:23
KeyList _keys
Definition: staff.h:72
Definition: xmlwriter.h:26
void setBarLineSpan(int val)
Definition: staff.h:181
int ticks() const
Definition: fraction.h:228
void setHideWhenEmpty(HideMode v)
Definition: staff.h:176
BracketType
Definition: mscore.h:107
void clearChannelList(int voice)
Definition: staff.h:187
void setPart(Part *p)
Definition: staff.h:118
void clearCapoList()
Definition: staff.h:195
Definition of classes VeloList.
int pitchOffset(const Fraction &tick)
Definition: staff.h:229
Key key(const Fraction &tick) const
Definition: staff.h:156
PitchList _pitchOffsets
cached value
Definition: staff.h:97
ClefType
Definition: clef.h:37
Definition: fraction.h:46
ElementType
Definition: types.h:34
Definition: instrtemplate.h:48
void setDefaultClefType(const ClefTypeList &l)
Definition: staff.h:135
bool cutaway() const
Definition: staff.h:168
bool hideSystemBarLine() const
Definition: staff.h:173
void setCutaway(bool val)
Definition: staff.h:169
QColor color() const
Definition: staff.h:243
ClefTypeList defaultClefType() const
Definition: staff.h:134
bool isLocalTimeSignature(const Fraction &tick)
Definition: staff.h:151
void setColor(const QColor &val)
Definition: staff.h:244
VeloList _velocities
cached value
Definition: staff.h:96
KeyList * keyList()
Definition: staff.h:155