Skip to content

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

<thai-score>

Attribute Required Type Description
part Yes IDREF References a <part id="..."> in <ensemble>.

One or more <section-ref> elements.

<part-data part="P1">
<section-ref section="s1">
<line number="1">
<measure number="1"><note pitch=""/><note pitch=""/></measure>
</line>
</section-ref>
</part-data>
  • 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 through part, 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.