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(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

composerstring composer of the score (read only)
durationint duration of score in seconds (read only)
excerptsarray[Excerpt] the list of the excerpts (linked parts)
firstMeasureMeasure the first measure of the score (read only)
firstMeasureMMMeasure the first multi-measure rest measure of the score (read only)
harmonyCountint number of harmony items (read only)
hasHarmoniesbool score has chord symbols (read only)
hasLyricsbool score has lyrics (read only)
keysigint key signature at the start of the score (read only)
lastMeasureMeasure the last measure of the score (read only)
lastMeasureMMMeasure the last multi-measure rest measure of the score (read only)
lastSegmentSegment the last score segment (read-only)
lyricCountint number of lyric items (read only)
namestring name of the score
nmeasuresint number of measures (read only)
npagesint number of pages (read only)
nstavesint number of staves (read only)
ntracksint number of tracks (staves * 4) (read only)
partsarray[Part] the list of parts (read only)
poetstring poet of the score (read only)
subtitlestring subtitle of the score (read only)
titlestring title of the score (read only)