MuseScore Plugins 3.3
Plugins API for MuseScore
Loading...
Searching...
No Matches
Segment Class Reference
Inheritance diagram for Segment:
Collaboration diagram for Segment:

Public Member Functions

Q_INVOKABLE Ms::PluginAPI::ElementelementAt (int track)
Public Member Functions inherited from Element
Q_INVOKABLE Ms::PluginAPI::Elementclone () const
 Create a copy of the element.
Q_INVOKABLE QString subtypeName () const
Q_INVOKABLE QString _name () const
 Deprecated: same as ScoreElement::name. Left for compatibility purposes.
Public Member Functions inherited from ScoreElement
Q_INVOKABLE QString userName () const
 Human-readable element type name.
Q_INVOKABLE bool is (Ms::PluginAPI::ScoreElement *other)
 Checks whether two variables represent the same object.

Properties

QQmlListProperty< Ms::PluginAPI::Elementannotations
 The list of annotations.
Ms::PluginAPI::SegmentnextInMeasure
 Next segment in this measure.
Ms::PluginAPI::Segmentnext
 Next segment in this score. Doesn't stop at measure border.
Ms::PluginAPI::SegmentprevInMeasure
 Previous segment in this measure.
Ms::PluginAPI::Segmentprev
 Previous segment in this score. Doesn't stop at measure border.
Ms::SegmentType segmentType
 Type of this segment, one of PluginAPI::PluginAPI::Segment values.
int tick
 Current tick for this segment.
Properties inherited from Element
Ms::PluginAPI::Elementparent
 Parent element for this element.
Ms::PluginAPI::Staffstaff
 Staff which this element belongs to.
qreal offsetX
 X-axis offset from a reference position in spatium units.
qreal offsetY
 Y-axis offset from a reference position in spatium units.
qreal posX
 Reference position of this element relative to its parent element.
qreal posY
 Reference position of this element relative to its parent element.
QPointF pagePos
 Position of this element in page coordinates, in spatium units.
QRectF bbox
 Bounding box of this element.
QVariant subtype
bool selected
bool generated
QColor color
 Element color.
bool visible
int z
 Stacking order of this element.
QVariant small
QVariant showCourtesy
QVariant lineType
QVariant line
QVariant fixed
QVariant fixedLine
QVariant headType
 Notehead type, one of PluginAPI::PluginAPI::NoteHeadType values.
QVariant headScheme
 Notehead scheme, one of PluginAPI::PluginAPI::NoteHeadScheme values.
QVariant headGroup
 Notehead group, one of PluginAPI::PluginAPI::NoteHeadGroup values.
QVariant articulationAnchor
QVariant direction
QVariant stemDirection
QVariant noStem
QVariant slurDirection
QVariant leadingSpace
QVariant distribute
QVariant mirrorHead
QVariant dotPosition
QVariant tuning
QVariant pause
QVariant barlineType
QVariant barlineSpan
QVariant barlineSpanFrom
QVariant barlineSpanTo
QPointF offset
 Offset from a reference position in spatium units.
QVariant fret
QVariant string
QVariant ghost
QVariant play
QVariant timesigNominal
QVariant timesigActual
QVariant growLeft
QVariant growRight
QVariant boxHeight
QVariant boxWidth
QVariant topGap
QVariant bottomGap
QVariant leftMargin
QVariant rightMargin
QVariant topMargin
QVariant bottomMargin
QVariant layoutBreakType
QVariant autoscale
QVariant size
QVariant scale
QVariant lockAspectRatio
QVariant sizeIsSpatium
QVariant text
QVariant beamPos
QVariant beamMode
QVariant beamNoSlope
QVariant userLen
QVariant space
 For spacers: amount of space between staves.
QVariant tempo
QVariant tempoFollowText
QVariant accidentalBracket
QVariant numeratorString
QVariant denominatorString
QVariant fbprefix
QVariant fbdigit
QVariant fbsuffix
QVariant fbcontinuationline
QVariant ottavaType
QVariant numbersOnly
QVariant trillType
QVariant vibratoType
QVariant hairpinCircledTip
QVariant hairpinType
QVariant hairpinHeight
QVariant hairpinContHeight
QVariant veloChange
QVariant singleNoteDynamics
QVariant veloChangeMethod
QVariant veloChangeSpeed
QVariant dynamicRange
QVariant changeMethod
 The way a ramp interpolates between values.
QVariant placement
QVariant velocity
QVariant jumpTo
QVariant playUntil
QVariant continueAt
QVariant label
QVariant markerType
QVariant arpUserLen1
QVariant arpUserLen2
QVariant measureNumberMode
QVariant mmRestRangeBracketType
QVariant glissType
QVariant glissText
QVariant glissShowText
QVariant glissandoStyle
QVariant glissEaseIn
QVariant glissEaseOut
QVariant diagonal
QVariant groups
QVariant lineStyle
QVariant lineColor
QVariant lineWidth
QVariant lassoPos
QVariant lassoSize
QVariant timeStretch
QVariant ornamentStyle
QVariant timesig
QVariant timesigGlobal
QVariant timesigStretch
QVariant timesigType
QVariant spannerTick
QVariant spannerTicks
QVariant spannerTrack2
QVariant userOff2
QVariant breakMmr
QVariant repeatCount
QVariant userStretch
QVariant noOffset
QVariant irregular
QVariant anchor
QVariant slurUoff1
QVariant slurUoff2
QVariant slurUoff3
QVariant slurUoff4
QVariant staffMove
QVariant verse
QVariant syllabic
QVariant lyricTicks
QVariant volta_ending
QVariant lineVisible
QVariant mag
QVariant useDrumset
QVariant durationType
QVariant role
int track
QVariant fretStrings
QVariant fretFrets
QVariant fretOffset
QVariant fretNumPos
QVariant systemBracket
QVariant gap
bool autoplace
 Whether this element participates in autoplacement.
QVariant dashLineLen
QVariant dashGapLen
QVariant symbol
 Symbol ID of this element (if approproate), one of PluginAPI::PluginAPI::SymId values.
QVariant playRepeats
QVariant createSystemHeader
QVariant staffLines
QVariant lineDistance
QVariant stepOffset
QVariant staffShowBarlines
QVariant staffShowLedgerlines
QVariant staffStemless
QVariant staffGenClef
QVariant staffGenTimesig
QVariant staffGenKeysig
QVariant staffYoffset
QVariant bracketSpan
QVariant bracketColumn
QVariant inameLayoutPosition
QVariant subStyle
QVariant fontFace
QVariant fontSize
QVariant fontStyle
QVariant frameType
QVariant frameWidth
QVariant framePadding
QVariant frameRound
QVariant frameFgColor
QVariant frameBgColor
QVariant sizeSpatiumDependent
QVariant align
QVariant systemFlag
QVariant beginText
QVariant beginTextAlign
QVariant beginTextPlace
QVariant beginHookType
QVariant beginHookHeight
QVariant beginFontFace
QVariant beginFontSize
QVariant beginFontStyle
QVariant beginTextOffset
QVariant continueText
QVariant continueTextAlign
QVariant continueTextPlace
QVariant continueFontFace
QVariant continueFontSize
QVariant continueFontStyle
QVariant continueTextOffset
QVariant endText
QVariant endTextAlign
QVariant endTextPlace
QVariant endHookType
QVariant endHookHeight
QVariant endFontFace
QVariant endFontSize
QVariant endFontStyle
QVariant endTextOffset
QVariant posAbove
int voice
QVariant position
QVariant harmonyType
 For chord symbols, chord symbol type, one of PluginAPI::PluginAPI::HarmonyType values.
Properties inherited from ScoreElement
int type
 Type of this element.
QString name
 Name of this element's type, not localized.

Member Function Documentation

◆ elementAt()

Element * elementAt ( int track)
Returns
Element at the given track (null if there is no such an element)
Parameters
tracktrack number

Property Documentation

◆ annotations

QQmlListProperty<Ms::PluginAPI::Element> annotations
read

The list of annotations.

Articulations, staff/system/expression text are examples of what is considered to be segment annotations.

◆ next

Next segment in this score. Doesn't stop at measure border.

Returns
The next segment in this score. Null if there is no such segment (i.e. this is the last segment in the score).

◆ nextInMeasure

Ms::PluginAPI::Segment* nextInMeasure
read

Next segment in this measure.

Returns
The next segment in this segment's measure. Null if there is no such segment.

◆ prev

Previous segment in this score. Doesn't stop at measure border.

Returns
The previous segment in this score. Null if there is no such segment (i.e. this is the first segment in the score).

◆ prevInMeasure

Ms::PluginAPI::Segment* prevInMeasure
read

Previous segment in this measure.

Returns
The previous segment in this segment's measure. Null if there is no such segment.

◆ tick

int tick
read

Current tick for this segment.

Returns
Tick of this segment, i.e. number of ticks from the beginning of the score to this segment.
See also
Tick Length values

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