<?xml version="1.0" encoding="UTF-8"?>
<!-- Line repeats. One range nests inside another and a third is disjoint from
     both, which is the only arrangement allowed: ranges must be properly
     nested or wholly separate. A line repeat is independent of any <repeat>
     around the section and does not affect how spans are matched. -->
<thai-score xmlns="https://thaimusicxml.anan.ovh/ns/1" version="1.0">
  <header>
    <title>Line repeats</title>
  </header>
  <structure>
    <section id="s1" name="ท่อน 1">
      <line-repeat first="1" last="4" times="2"/>
      <line-repeat first="2" last="3" times="3"/>
      <line-repeat first="5" last="5" times="2"/>
    </section>
  </structure>
  <ensemble>
    <part id="P1">
      <instrument-name>จะเข้</instrument-name>
    </part>
  </ensemble>
  <part-data part="P1">
    <section-ref section="s1">
      <line number="1">
        <measure number="1"><note pitch="ด"/><note pitch="ร"/></measure>
      </line>
      <line number="2">
        <measure number="1"><note pitch="ม"/><note pitch="ซ"/></measure>
      </line>
      <line number="3">
        <measure number="1"><note pitch="ล"/><note pitch="ท"/></measure>
      </line>
      <line number="4">
        <measure number="1"><note pitch="ดํ"/><note pitch="ล"/></measure>
      </line>
      <line number="5">
        <measure number="1"><note pitch="ซ"/><note pitch="ม"/></measure>
      </line>
    </section-ref>
  </part-data>
</thai-score>
