MuseScore  3.4
Music composition and notation
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Ms::Staff Class Referencefinal

Global staff data not directly related to drawing. More...

#include <staff.h>

Inheritance diagram for Ms::Staff:
Inheritance graph
[legend]
Collaboration diagram for Ms::Staff:
Collaboration graph
[legend]

Public Types

enum  HideMode { HideMode::AUTO, HideMode::ALWAYS, HideMode::NEVER, HideMode::INSTRUMENT }
 

Public Member Functions

 Staff (Score *score=0)
 
void init (const InstrumentTemplate *, const StaffType *staffType, int)
 
void initFromStaffType (const StaffType *staffType)
 
void init (const Staff *)
 
virtual ElementType type () const override
 
bool isTop () const
 
QString partName () const
 
int rstaff () const
 
int idx () const
 
void read (XmlReader &)
 
bool readProperties (XmlReader &)
 
void write (XmlWriter &xml) const
 
Partpart () const
 
void setPart (Part *p)
 
BracketType bracketType (int idx) const
 
int bracketSpan (int idx) const
 
void setBracketType (int idx, BracketType val)
 
void setBracketSpan (int idx, int val)
 
void swapBracket (int oldIdx, int newIdx)
 
void changeBracketColumn (int oldColumn, int newColumn)
 
void addBracket (BracketItem *)
 
const QList< BracketItem * > & brackets () const
 
QList< BracketItem * > & brackets ()
 
void cleanupBrackets ()
 
int bracketLevels () const
 
ClefListclefList ()
 
ClefTypeList clefType (const Fraction &) const
 
ClefTypeList defaultClefType () const
 
void setDefaultClefType (const ClefTypeList &l)
 
ClefType clef (const Fraction &) const
 
Fraction nextClefTick (const Fraction &) const
 
Fraction currentClefTick (const Fraction &) const
 
void setClef (Clef *)
 
void removeClef (const Clef *)
 
void addTimeSig (TimeSig *)
 
void removeTimeSig (TimeSig *)
 
void clearTimeSig ()
 
Fraction timeStretch (const Fraction &) const
 
TimeSigtimeSig (const Fraction &) const
 
TimeSignextTimeSig (const Fraction &) const
 
Fraction currentTimeSigTick (const Fraction &) const
 
bool isLocalTimeSignature (const Fraction &tick)
 
const Groupsgroup (const Fraction &) const
 
KeyListkeyList ()
 
Key key (const Fraction &tick) const
 
KeySigEvent keySigEvent (const Fraction &) const
 
Fraction nextKeyTick (const Fraction &) const
 
Fraction currentKeyTick (const Fraction &) const
 
KeySigEvent prevKey (const Fraction &) const
 
void setKey (const Fraction &, KeySigEvent)
 
void removeKey (const Fraction &)
 
bool show () const
 
bool stemless (const Fraction &) const
 
bool invisible () const
 
void setInvisible (bool val)
 
bool cutaway () const
 
void setCutaway (bool val)
 
bool showIfEmpty () const
 
void setShowIfEmpty (bool val)
 
bool hideSystemBarLine () const
 
void setHideSystemBarLine (bool val)
 
HideMode hideWhenEmpty () const
 
void setHideWhenEmpty (HideMode v)
 
int barLineSpan () const
 
int barLineFrom () const
 
int barLineTo () const
 
void setBarLineSpan (int val)
 
void setBarLineFrom (int val)
 
void setBarLineTo (int val)
 
qreal height () const
 
int channel (const Fraction &, int voice) const
 
void clearChannelList (int voice)
 
void insertIntoChannelList (int voice, const Fraction &tick, int channelId)
 
SwingParameters swing (const Fraction &) const
 
void clearSwingList ()
 
void insertIntoSwingList (const Fraction &tick, SwingParameters sp)
 
int capo (const Fraction &) const
 
void clearCapoList ()
 
void insertIntoCapoList (const Fraction &tick, int fretId)
 
const StaffTypestaffType (const Fraction &) const
 
const StaffTypeconstStaffType (const Fraction &) const
 
StaffTypestaffType (const Fraction &)
 
StaffTypesetStaffType (const Fraction &, const StaffType &)
 
void removeStaffType (const Fraction &)
 
void staffTypeListChanged (const Fraction &)
 
bool isPitchedStaff (const Fraction &) const
 
bool isTabStaff (const Fraction &) const
 
bool isDrumStaff (const Fraction &) const
 
int lines (const Fraction &) const
 
void setLines (const Fraction &, int lines)
 
qreal lineDistance (const Fraction &) const
 
void setSlashStyle (const Fraction &, bool val)
 
int middleLine (const Fraction &) const
 
int bottomLine (const Fraction &) const
 
qreal userMag (const Fraction &) const
 
void setUserMag (const Fraction &, qreal m)
 
qreal mag (const Fraction &) const
 
bool small (const Fraction &) const
 
void setSmall (const Fraction &, bool val)
 
qreal spatium (const Fraction &) const
 
VeloListvelocities ()
 
PitchListpitchOffsets ()
 
int pitchOffset (const Fraction &tick)
 
void updateOttava ()
 
QList< Staff * > staffList () const
 
bool primaryStaff () const
 if there are linked staves, the primary staff is the one who is played back and it's not a tab staff because we don't have enough information to play e.g ornaments. More...
 
qreal userDist () const
 
void setUserDist (qreal val)
 
void spatiumChanged (qreal, qreal)
 
void localSpatiumChanged (double oldVal, double newVal, Fraction tick)
 
bool genKeySig ()
 
bool showLedgerLines (const Fraction &) const
 
QColor color () const
 
void setColor (const QColor &val)
 
void undoSetColor (const QColor &val)
 
void insertTime (const Fraction &, const Fraction &len)
 
virtual QVariant getProperty (Pid) const override
 
virtual bool setProperty (Pid, const QVariant &) override
 
virtual QVariant propertyDefault (Pid) const override
 
BracketType innerBracket () const
 
bool playbackVoice (int voice) const
 
void setPlaybackVoice (int voice, bool val)
 
void dumpClefs (const char *title) const
 
void dumpKeys (const char *title) const
 
void dumpTimeSigs (const char *) const
 
void triggerLayout ()
 
void triggerLayout (const Fraction &tick)
 
- Public Member Functions inherited from Ms::ScoreElement
 ScoreElement (Score *s)
 
 ScoreElement (const ScoreElement &se)
 
virtual ~ScoreElement ()
 
Scorescore () const
 
MasterScoremasterScore () const
 
virtual void setScore (Score *s)
 
const char * name () const
 
virtual QString userName () const
 
virtual void resetProperty (Pid id)
 
QVariant propertyDefault (Pid pid, Tid tid) const
 
virtual bool sizeIsSpatiumDependent () const
 
virtual void reset ()
 
virtual Pid propertyId (const QStringRef &xmlName) const
 
virtual QString propertyUserValue (Pid) const
 
virtual void initElementStyle (const ElementStyle *)
 
virtual const ElementStylestyledProperties () const
 
virtual PropertyFlagspropertyFlagsList () const
 
virtual PropertyFlags propertyFlags (Pid) const
 
bool isStyled (Pid pid) const
 
QVariant styleValue (Pid, Sid) const
 
void setPropertyFlags (Pid, PropertyFlags)
 
virtual Sid getPropertyStyle (Pid) const
 
bool readProperty (const QStringRef &, XmlReader &, Pid)
 
void readProperty (XmlReader &, Pid)
 
bool readStyledProperty (XmlReader &e, const QStringRef &tag)
 
virtual void readAddConnector (ConnectorInfoReader *info, bool pasteMode)
 
virtual void styleChanged ()
 
virtual void undoChangeProperty (Pid id, const QVariant &, PropertyFlags ps)
 
void undoChangeProperty (Pid id, const QVariant &)
 
void undoResetProperty (Pid id)
 
void undoPushProperty (Pid)
 
void writeProperty (XmlWriter &xml, Pid id) const
 
void writeStyledProperties (XmlWriter &) const
 
QList< ScoreElement * > linkList () const
 
void linkTo (ScoreElement *)
 
void unlink ()
 
bool isLinked (ScoreElement *)
 return true if se is different and linked to this element More...
 
virtual void undoUnlink ()
 
int lid () const
 
LinkedElementslinks () const
 
void setLinks (LinkedElements *le)
 
bool isNote () const
 
bool isRest () const
 
bool isChord () const
 
bool isBarLine () const
 
bool isArticulation () const
 
bool isFermata () const
 
bool isMarker () const
 
bool isClef () const
 
bool isKeySig () const
 
bool isTimeSig () const
 
bool isMeasure () const
 
bool isTempoText () const
 
bool isBreath () const
 
bool isHBox () const
 
bool isVBox () const
 
bool isTBox () const
 
bool isFBox () const
 
bool isTie () const
 
bool isSlur () const
 
bool isGlissando () const
 
bool isGlissandoSegment () const
 
bool isSystemDivider () const
 
bool isRehearsalMark () const
 
bool isHarmony () const
 
bool isVolta () const
 
bool isJump () const
 
bool isOttava () const
 
bool isLayoutBreak () const
 
bool isSegment () const
 
bool isTremolo () const
 
bool isSystem () const
 
bool isLyrics () const
 
bool isStem () const
 
bool isBeam () const
 
bool isHook () const
 
bool isStemSlash () const
 
bool isSlurSegment () const
 
bool isTieSegment () const
 
bool isSpacer () const
 
bool isStaffLines () const
 
bool isAmbitus () const
 
bool isBracket () const
 
bool isInstrumentChange () const
 
bool isStaffTypeChange () const
 
bool isHairpin () const
 
bool isHairpinSegment () const
 
bool isBend () const
 
bool isTremoloBar () const
 
bool isRepeatMeasure () const
 
bool isTuplet () const
 
bool isNoteDot () const
 
bool isDynamic () const
 
bool isInstrumentName () const
 
bool isAccidental () const
 
bool isTextLine () const
 
bool isTextLineSegment () const
 
bool isPedal () const
 
bool isPedalSegment () const
 
bool isOttavaSegment () const
 
bool isLedgerLine () const
 
bool isIcon () const
 
bool isVoltaSegment () const
 
bool isNoteLine () const
 
bool isTrill () const
 
bool isTrillSegment () const
 
bool isLetRing () const
 
bool isLetRingSegment () const
 
bool isVibrato () const
 
bool isPalmMute () const
 
bool isPalmMuteSegment () const
 
bool isVibratoSegment () const
 
bool isSymbol () const
 
bool isFSymbol () const
 
bool isFingering () const
 
bool isNoteHead () const
 
bool isLyricsLine () const
 
bool isLyricsLineSegment () const
 
bool isFiguredBass () const
 
bool isStaffState () const
 
bool isArpeggio () const
 
bool isImage () const
 
bool isChordLine () const
 
bool isFretDiagram () const
 
bool isPage () const
 
bool isText () const
 
bool isMeasureNumber () const
 
bool isStaffText () const
 
bool isSystemText () const
 
bool isBracketItem () const
 
bool isScore () const
 
bool isStaff () const
 
bool isPart () const
 
bool isBagpipeEmbellishment () const
 
bool isLasso () const
 
bool isSticking () const
 
virtual bool isElement () const
 
bool isChordRest () const
 
bool isDurationElement () const
 
bool isSlurTieSegment () const
 
bool isSLineSegment () const
 
bool isBox () const
 
bool isVBoxBase () const
 
bool isMeasureBase () const
 
bool isTextBase () const
 
bool isTextLineBaseSegment () const
 
bool isLineSegment () const
 
bool isSpannerSegment () const
 
bool isBSymbol () const
 
bool isTextLineBase () const
 
bool isSLine () const
 
bool isSpanner () const
 
bool isStaffTextBase () const
 

Private Member Functions

void fillBrackets (int)
 
void cleanBrackets ()
 

Private Attributes

Part_part { 0 }
 
ClefList clefs
 
ClefTypeList _defaultClefType
 
KeyList _keys
 
std::map< int, TimeSig * > timesigs
 
QList< BracketItem * > _brackets
 
int _barLineSpan { false }
 true - span barline to next staff More...
 
int _barLineFrom { 0 }
 line of start staff to draw the barline from (0 = staff top line, ...) More...
 
int _barLineTo { 0 }
 line of end staff to draw the bar line to (0= staff bottom line, ...) More...
 
bool _invisible { false }
 
bool _cutaway { false }
 
bool _showIfEmpty { false }
 show this staff if system is empty and hideEmptyStaves is true More...
 
bool _hideSystemBarLine { false }
 
HideMode _hideWhenEmpty { HideMode::AUTO }
 
QColor _color { MScore::defaultColor }
 
qreal _userDist { 0.0 }
 user edited extra distance More...
 
StaffTypeList _staffTypeList
 
QMap< int, int > _channelList [VOICES]
 
QMap< int, SwingParameters_swingList
 
QMap< int, int > _capoList
 
bool _playbackVoice [VOICES] { true, true, true, true }
 
VeloList _velocities
 cached value More...
 
PitchList _pitchOffsets
 cached value More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Ms::ScoreElement
static ElementType name2type (const QStringRef &, bool silent=false)
 
static ElementType name2type (const QString &s)
 
static const char * name (ElementType)
 
- Protected Member Functions inherited from Ms::ScoreElement
virtual int getPropertyFlagsIdx (Pid id) const
 
- Protected Attributes inherited from Ms::ScoreElement
const ElementStyle_elementStyle { &emptyStyle }
 
PropertyFlags_propertyFlagsList { 0 }
 
LinkedElements_links { 0 }
 

Detailed Description

Global staff data not directly related to drawing.

Member Enumeration Documentation

◆ HideMode

enum Ms::Staff::HideMode
strong
Enumerator
AUTO 
ALWAYS 
NEVER 
INSTRUMENT 

Constructor & Destructor Documentation

◆ Staff()

Ms::Staff::Staff ( Score score = 0)

Member Function Documentation

◆ addBracket()

void Ms::Staff::addBracket ( BracketItem b)

◆ addTimeSig()

void Ms::Staff::addTimeSig ( TimeSig timesig)

◆ barLineFrom()

int Ms::Staff::barLineFrom ( ) const
inline

◆ barLineSpan()

int Ms::Staff::barLineSpan ( ) const
inline

◆ barLineTo()

int Ms::Staff::barLineTo ( ) const
inline

◆ bottomLine()

int Ms::Staff::bottomLine ( const Fraction tick) const

◆ bracketLevels()

int Ms::Staff::bracketLevels ( ) const

◆ brackets() [1/2]

const QList<BracketItem*>& Ms::Staff::brackets ( ) const
inline

◆ brackets() [2/2]

QList<BracketItem*>& Ms::Staff::brackets ( )
inline

◆ bracketSpan()

int Ms::Staff::bracketSpan ( int  idx) const

◆ bracketType()

BracketType Ms::Staff::bracketType ( int  idx) const

◆ capo()

int Ms::Staff::capo ( const Fraction tick) const

◆ changeBracketColumn()

void Ms::Staff::changeBracketColumn ( int  oldColumn,
int  newColumn 
)

◆ channel()

int Ms::Staff::channel ( const Fraction tick,
int  voice 
) const

◆ cleanBrackets()

void Ms::Staff::cleanBrackets ( )
private

◆ cleanupBrackets()

void Ms::Staff::cleanupBrackets ( )

◆ clearCapoList()

void Ms::Staff::clearCapoList ( )
inline

◆ clearChannelList()

void Ms::Staff::clearChannelList ( int  voice)
inline

◆ clearSwingList()

void Ms::Staff::clearSwingList ( )
inline

◆ clearTimeSig()

void Ms::Staff::clearTimeSig ( )

◆ clef()

ClefType Ms::Staff::clef ( const Fraction tick) const

◆ clefList()

ClefList& Ms::Staff::clefList ( )
inline

◆ clefType()

ClefTypeList Ms::Staff::clefType ( const Fraction tick) const

◆ color()

QColor Ms::Staff::color ( ) const
inline

◆ constStaffType()

const StaffType * Ms::Staff::constStaffType ( const Fraction tick) const

◆ currentClefTick()

Fraction Ms::Staff::currentClefTick ( const Fraction tick) const

◆ currentKeyTick()

Fraction Ms::Staff::currentKeyTick ( const Fraction tick) const

◆ currentTimeSigTick()

Fraction Ms::Staff::currentTimeSigTick ( const Fraction tick) const

◆ cutaway()

bool Ms::Staff::cutaway ( ) const
inline

◆ defaultClefType()

ClefTypeList Ms::Staff::defaultClefType ( ) const
inline

◆ dumpClefs()

void Ms::Staff::dumpClefs ( const char *  title) const

◆ dumpKeys()

void Ms::Staff::dumpKeys ( const char *  title) const

◆ dumpTimeSigs()

void Ms::Staff::dumpTimeSigs ( const char *  title) const

◆ fillBrackets()

void Ms::Staff::fillBrackets ( int  idx)
private

◆ genKeySig()

bool Ms::Staff::genKeySig ( )

◆ getProperty()

QVariant Ms::Staff::getProperty ( Pid  id) const
overridevirtual

Implements Ms::ScoreElement.

◆ group()

const Groups & Ms::Staff::group ( const Fraction tick) const

◆ height()

qreal Ms::Staff::height ( ) const

◆ hideSystemBarLine()

bool Ms::Staff::hideSystemBarLine ( ) const
inline

◆ hideWhenEmpty()

HideMode Ms::Staff::hideWhenEmpty ( ) const
inline

◆ idx()

int Ms::Staff::idx ( ) const

◆ init() [1/2]

void Ms::Staff::init ( const InstrumentTemplate t,
const StaffType staffType,
int  cidx 
)

◆ init() [2/2]

void Ms::Staff::init ( const Staff s)

◆ initFromStaffType()

void Ms::Staff::initFromStaffType ( const StaffType staffType)

◆ innerBracket()

BracketType Ms::Staff::innerBracket ( ) const

◆ insertIntoCapoList()

void Ms::Staff::insertIntoCapoList ( const Fraction tick,
int  fretId 
)
inline

◆ insertIntoChannelList()

void Ms::Staff::insertIntoChannelList ( int  voice,
const Fraction tick,
int  channelId 
)
inline

◆ insertIntoSwingList()

void Ms::Staff::insertIntoSwingList ( const Fraction tick,
SwingParameters  sp 
)
inline

◆ insertTime()

void Ms::Staff::insertTime ( const Fraction tick,
const Fraction len 
)

◆ invisible()

bool Ms::Staff::invisible ( ) const
inline

◆ isDrumStaff()

bool Ms::Staff::isDrumStaff ( const Fraction tick) const

◆ isLocalTimeSignature()

bool Ms::Staff::isLocalTimeSignature ( const Fraction tick)
inline

◆ isPitchedStaff()

bool Ms::Staff::isPitchedStaff ( const Fraction tick) const

◆ isTabStaff()

bool Ms::Staff::isTabStaff ( const Fraction tick) const

◆ isTop()

bool Ms::Staff::isTop ( ) const

◆ key()

Key Ms::Staff::key ( const Fraction tick) const
inline

◆ keyList()

KeyList* Ms::Staff::keyList ( )
inline

◆ keySigEvent()

KeySigEvent Ms::Staff::keySigEvent ( const Fraction tick) const

◆ lineDistance()

qreal Ms::Staff::lineDistance ( const Fraction tick) const

◆ lines()

int Ms::Staff::lines ( const Fraction tick) const

◆ localSpatiumChanged()

void Ms::Staff::localSpatiumChanged ( double  oldVal,
double  newVal,
Fraction  tick 
)

◆ mag()

qreal Ms::Staff::mag ( const Fraction tick) const

◆ middleLine()

int Ms::Staff::middleLine ( const Fraction tick) const

◆ nextClefTick()

Fraction Ms::Staff::nextClefTick ( const Fraction tick) const

◆ nextKeyTick()

Fraction Ms::Staff::nextKeyTick ( const Fraction tick) const

◆ nextTimeSig()

TimeSig * Ms::Staff::nextTimeSig ( const Fraction tick) const

◆ part()

Part* Ms::Staff::part ( ) const
inline

◆ partName()

QString Ms::Staff::partName ( ) const

◆ pitchOffset()

int Ms::Staff::pitchOffset ( const Fraction tick)
inline

◆ pitchOffsets()

PitchList& Ms::Staff::pitchOffsets ( )
inline

◆ playbackVoice()

bool Ms::Staff::playbackVoice ( int  voice) const
inline

◆ prevKey()

KeySigEvent Ms::Staff::prevKey ( const Fraction tick) const

◆ primaryStaff()

bool Ms::Staff::primaryStaff ( ) const

if there are linked staves, the primary staff is the one who is played back and it's not a tab staff because we don't have enough information to play e.g ornaments.

NOTE: it's not necessarily the top staff!

◆ propertyDefault()

QVariant Ms::Staff::propertyDefault ( Pid  id) const
overridevirtual

Reimplemented from Ms::ScoreElement.

◆ read()

void Ms::Staff::read ( XmlReader e)

◆ readProperties()

bool Ms::Staff::readProperties ( XmlReader e)

◆ removeClef()

void Ms::Staff::removeClef ( const Clef clef)

◆ removeKey()

void Ms::Staff::removeKey ( const Fraction tick)

◆ removeStaffType()

void Ms::Staff::removeStaffType ( const Fraction tick)

◆ removeTimeSig()

void Ms::Staff::removeTimeSig ( TimeSig timesig)

◆ rstaff()

int Ms::Staff::rstaff ( ) const

◆ setBarLineFrom()

void Ms::Staff::setBarLineFrom ( int  val)
inline

◆ setBarLineSpan()

void Ms::Staff::setBarLineSpan ( int  val)
inline

◆ setBarLineTo()

void Ms::Staff::setBarLineTo ( int  val)
inline

◆ setBracketSpan()

void Ms::Staff::setBracketSpan ( int  idx,
int  val 
)

◆ setBracketType()

void Ms::Staff::setBracketType ( int  idx,
BracketType  val 
)

◆ setClef()

void Ms::Staff::setClef ( Clef clef)

◆ setColor()

void Ms::Staff::setColor ( const QColor &  val)
inline

◆ setCutaway()

void Ms::Staff::setCutaway ( bool  val)
inline

◆ setDefaultClefType()

void Ms::Staff::setDefaultClefType ( const ClefTypeList l)
inline

◆ setHideSystemBarLine()

void Ms::Staff::setHideSystemBarLine ( bool  val)
inline

◆ setHideWhenEmpty()

void Ms::Staff::setHideWhenEmpty ( HideMode  v)
inline

◆ setInvisible()

void Ms::Staff::setInvisible ( bool  val)
inline

◆ setKey()

void Ms::Staff::setKey ( const Fraction tick,
KeySigEvent  k 
)

◆ setLines()

void Ms::Staff::setLines ( const Fraction tick,
int  lines 
)

◆ setPart()

void Ms::Staff::setPart ( Part p)
inline

◆ setPlaybackVoice()

void Ms::Staff::setPlaybackVoice ( int  voice,
bool  val 
)
inline

◆ setProperty()

bool Ms::Staff::setProperty ( Pid  id,
const QVariant &  v 
)
overridevirtual

Implements Ms::ScoreElement.

◆ setShowIfEmpty()

void Ms::Staff::setShowIfEmpty ( bool  val)
inline

◆ setSlashStyle()

void Ms::Staff::setSlashStyle ( const Fraction tick,
bool  val 
)

◆ setSmall()

void Ms::Staff::setSmall ( const Fraction tick,
bool  val 
)

◆ setStaffType()

StaffType * Ms::Staff::setStaffType ( const Fraction tick,
const StaffType nst 
)

◆ setUserDist()

void Ms::Staff::setUserDist ( qreal  val)
inline

◆ setUserMag()

void Ms::Staff::setUserMag ( const Fraction tick,
qreal  m 
)

◆ show()

bool Ms::Staff::show ( ) const

◆ showIfEmpty()

bool Ms::Staff::showIfEmpty ( ) const
inline

◆ showLedgerLines()

bool Ms::Staff::showLedgerLines ( const Fraction tick) const

◆ small()

bool Ms::Staff::small ( const Fraction tick) const

◆ spatium()

qreal Ms::Staff::spatium ( const Fraction tick) const

◆ spatiumChanged()

void Ms::Staff::spatiumChanged ( qreal  oldValue,
qreal  newValue 
)

◆ staffList()

QList< Staff * > Ms::Staff::staffList ( ) const

◆ staffType() [1/2]

const StaffType * Ms::Staff::staffType ( const Fraction tick) const

◆ staffType() [2/2]

StaffType * Ms::Staff::staffType ( const Fraction tick)

◆ staffTypeListChanged()

void Ms::Staff::staffTypeListChanged ( const Fraction tick)

◆ stemless()

bool Ms::Staff::stemless ( const Fraction tick) const

◆ swapBracket()

void Ms::Staff::swapBracket ( int  oldIdx,
int  newIdx 
)

◆ swing()

SwingParameters Ms::Staff::swing ( const Fraction tick) const

◆ timeSig()

TimeSig * Ms::Staff::timeSig ( const Fraction tick) const

◆ timeStretch()

Fraction Ms::Staff::timeStretch ( const Fraction tick) const

◆ triggerLayout() [1/2]

void Ms::Staff::triggerLayout ( )

◆ triggerLayout() [2/2]

void Ms::Staff::triggerLayout ( const Fraction tick)

◆ type()

virtual ElementType Ms::Staff::type ( ) const
inlineoverridevirtual

Implements Ms::ScoreElement.

◆ undoSetColor()

void Ms::Staff::undoSetColor ( const QColor &  val)

◆ updateOttava()

void Ms::Staff::updateOttava ( )

◆ userDist()

qreal Ms::Staff::userDist ( ) const
inline

◆ userMag()

qreal Ms::Staff::userMag ( const Fraction tick) const

◆ velocities()

VeloList& Ms::Staff::velocities ( )
inline

◆ write()

void Ms::Staff::write ( XmlWriter xml) const

Member Data Documentation

◆ _barLineFrom

int Ms::Staff::_barLineFrom { 0 }
private

line of start staff to draw the barline from (0 = staff top line, ...)

◆ _barLineSpan

int Ms::Staff::_barLineSpan { false }
private

true - span barline to next staff

◆ _barLineTo

int Ms::Staff::_barLineTo { 0 }
private

line of end staff to draw the bar line to (0= staff bottom line, ...)

◆ _brackets

QList<BracketItem*> Ms::Staff::_brackets
private

◆ _capoList

QMap<int,int> Ms::Staff::_capoList
private

◆ _channelList

QMap<int,int> Ms::Staff::_channelList[VOICES]
private

◆ _color

QColor Ms::Staff::_color { MScore::defaultColor }
private

◆ _cutaway

bool Ms::Staff::_cutaway { false }
private

◆ _defaultClefType

ClefTypeList Ms::Staff::_defaultClefType
private

◆ _hideSystemBarLine

bool Ms::Staff::_hideSystemBarLine { false }
private

◆ _hideWhenEmpty

HideMode Ms::Staff::_hideWhenEmpty { HideMode::AUTO }
private

◆ _invisible

bool Ms::Staff::_invisible { false }
private

◆ _keys

KeyList Ms::Staff::_keys
private

◆ _part

Part* Ms::Staff::_part { 0 }
private

◆ _pitchOffsets

PitchList Ms::Staff::_pitchOffsets
private

cached value

◆ _playbackVoice

bool Ms::Staff::_playbackVoice[VOICES] { true, true, true, true }
private

◆ _showIfEmpty

bool Ms::Staff::_showIfEmpty { false }
private

show this staff if system is empty and hideEmptyStaves is true

◆ _staffTypeList

StaffTypeList Ms::Staff::_staffTypeList
private

◆ _swingList

QMap<int,SwingParameters> Ms::Staff::_swingList
private

◆ _userDist

qreal Ms::Staff::_userDist { 0.0 }
private

user edited extra distance

◆ _velocities

VeloList Ms::Staff::_velocities
private

cached value

◆ clefs

ClefList Ms::Staff::clefs
private

◆ timesigs

std::map<int,TimeSig*> Ms::Staff::timesigs
private

The documentation for this class was generated from the following files: