Part Object

Last updated 2010-04-16

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:

Score Object .


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).