### Score

#### Methods

void startCmd()
to be used at least once by plugins of type "dialog" before score modifications to make them undoable
void endCmd(bool rollback = false)
to be used at least once by plugins of type "dialog" after score modifications to make them undoable
void updateRepeatList(bool expandRepeats)
??
Ms::Segment firstSegment(int segType = static_cast<int>(Segment::Type::All)
returns the first segment of the score of the given type (use Segment.Clef, ... enum)
void doLayout()
??
QString metaTag(const QString& tag)
returns as a string the metatag named 'tag'
void setMetaTag(const QString& tag, const QString& val)
sets the metatag named 'tag' to 'val'
void appendPart(const QString&)
appends to the score a named part as last part
void appendMeasures(int)
appends to the score a number of measures
void addText(const QString&, const QString&)
??
Ms::Cursor newCursor()
creates and returns a cursor to be used to navigate the score
QString extractLyrics()
void cropPage(qreal margins)
??

#### Properties

composer | string | composer of the score (read only)
duration | int | duration of score in seconds (read only)
excerpts | array[Excerpt] | the list of the excerpts (linked parts)
firstMeasure | Measure | the first measure of the score (read only)
firstMeasureMM | Measure | the first multi-measure rest measure of the score (read only)
harmonyCount | int | number of harmony items (read only)
hasHarmonies | bool | score has chord symbols (read only)
hasLyrics | bool | score has lyrics (read only)
keysig | int | key signature at the start of the score (read only)
lastMeasure | Measure | the last measure of the score (read only)
lastMeasureMM | Measure | the last multi-measure rest measure of the score (read only)
lastSegment | Segment | the last score segment (read-only)
lyricCount | int | number of lyric items (read only)
name | string | name of the score
nmeasures | int | number of measures (read only)
npages | int | number of pages (read only)
nstaves | int | number of staves (read only)
ntracks | int | number of tracks (staves * 4) (read only)
parts | array[Part] | the list of parts (read only)
poet | string | poet of the score (read only)
subtitle | string | subtitle of the score (read only)
title | string | title of the score (read only)