|
Q_INVOKABLE QString | metaTag (const QString &tag) const |
| Returns as a string the metatag named tag .
|
|
Q_INVOKABLE void | setMetaTag (const QString &tag, const QString &val) |
| Sets the metatag named tag to val .
|
|
Q_INVOKABLE void | appendMeasures (int n) |
| Appends a number of measures to this score.
|
|
Q_INVOKABLE void | addText (const QString &type, const QString &text) |
| Adds a header text to the score. More...
|
|
Q_INVOKABLE Ms::PluginAPI::Cursor * | newCursor () |
| Creates and returns a cursor to be used to navigate in the score.
|
|
Q_INVOKABLE Ms::PluginAPI::Segment * | firstSegment () |
|
Q_INVOKABLE QString | extractLyrics () |
|
Q_INVOKABLE void | startCmd () |
| For "dock" type plugins: to be used before score modifications to make them undoable. More...
|
|
Q_INVOKABLE void | endCmd (bool rollback=false) |
| For "dock" type plugins: to be used after score modifications to make them undoable. More...
|
|
◆ addText()
void addText |
( |
const QString & |
type, |
|
|
const QString & |
txt |
|
) |
| |
Adds a header text to the score.
- Parameters
-
type | One of the following values:
- "title"
- "subtitle"
- "composer"
- "lyricist"
- Any other value corresponds to default text style.
|
txt | Text to be added. |
◆ endCmd()
Q_INVOKABLE void endCmd |
( |
bool |
rollback = false | ) |
|
|
inline |
For "dock" type plugins: to be used after score modifications to make them undoable.
Ends an undoable command. Should be used at least once by "dock" type plugins in case they modify the score.
- Parameters
-
rollback | If true, reverts all the changes made since the last startCmd() invocation. |
◆ startCmd()
Q_INVOKABLE void startCmd |
( |
| ) |
|
|
inline |
For "dock" type plugins: to be used before score modifications to make them undoable.
Starts an undoable command. Must be accompanied by a corresponding endCmd() call. Should be used at least once by "dock" type plugins in case they modify the score.
◆ composer
Composer of the score, as taken from the score properties (read only).
- Since
- MuseScore 3.2
◆ duration
Duration of score in seconds (read only).
- Since
- MuseScore 3.2
◆ firstMeasureMM
First multimeasure rest measure of the score (read only).
- Since
- MuseScore 3.2
◆ harmonyCount
Number of harmony items (chord symbols) in the score (read only).
- Since
- MuseScore 3.2
◆ hasHarmonies
Whether score has harmonies (chord symbols) (read only).
- Since
- MuseScore 3.2
◆ hasLyrics
Whether score has lyrics (read only).
- Since
- MuseScore 3.2
◆ keysig
Key signature at the start of the score, in number of accidentals, negative for flats, postitive for sharps (read only).
- Since
- MuseScore 3.2
◆ lastMeasureMM
Last multimeasure rest measure of the score (read only).
- Since
- MuseScore 3.2
◆ lyricCount
Number of lyrics items (syllables) in the score (read only).
- Since
- MuseScore 3.2
◆ lyricist
Lyricist of score, as taken from the score properties.
- Since
- MuseScore 3.2
◆ scoreName
Name of the score, without path leading to it and extension.
- Since
- MuseScore 3.2
◆ title
Title of score, as taken from the score properties' workTitle (read only).
- Since
- MuseScore 3.2
The documentation for this class was generated from the following files:
- mscore/plugin/api/score.h
- mscore/plugin/api/score.cpp