<part-data>
The <part-data> element contains the music data for a single instrument.
<part> in <ensemble> declares that the instrument exists. <part-data> is where its notes actually live.
Parent
Section titled “Parent”Attributes
Section titled “Attributes”| Attribute | Required | Type | Description |
|---|---|---|---|
part |
Yes | IDREF | References a <part id="..."> in <ensemble>. |
Children
Section titled “Children”One or more <section-ref> elements.
Example
Section titled “Example”<part-data part="P1"> <section-ref section="s1"> <line number="1"> <measure number="1"><note pitch="ด"/><note pitch="ร"/></measure> </line> </section-ref></part-data>Conformance
Section titled “Conformance”- Every
<part>in<ensemble>must have exactly one<part-data>referencing it. A part with no matching<part-data>, or more than one, is invalid. - A
<part-data>must not reference the same<section>twice. <part-data>elements may appear in any order. Matching a part to its data goes throughpart, not through document position.- A
<part-data>’s<section-ref>children may appear in any order too. Play order comes from<structure>; a<section-ref>is data attached to a section, not a place in the score. Writing them in the order the sections play is friendlier to read, and nothing depends on it. - A
<part-data>need not reference every section. Leave out the<section-ref>for a section its instrument does not play.