Part Object
This documentation applies to plugins for 1.x only!
Documentation for 2.x+ is built into the Plugin Creator of Musescore.
( ⇒ In Musescore press Ctrl+Shift+P, then F1 to bring it up. )
Click here for Documentation for 3.x
Represents a part of a score, either instrumental or vocal, and allows access to some of its properties.
To retrieve the n-th part of a score, the Score.part(n)
method of a Score Object
can be used.
New parts cannot be created as such; to add a new part to a score, use the Score.appendPart(partName)
method instead.
See also:
Properties
Name | Type | Description |
---|---|---|
longName | string | long name of the part, for instance "Pianoforte" (read-only). |
shortName | string | short name of the part, for instance "Pf." (read-only). |
midiChannel | integer | MIDI channel of the part (read-only). |
midiProgram | integer | MIDI program of the part (read-only). |
staves | integer | Number of staves in the part (read-only). |
Methods
None.