<?xml version="1.0" encoding="UTF-8"?>
<!-- A completely empty <measure> inside an <ending> line means "unchanged
     from the line being replaced" - the arranger only has to write out the
     measures that actually differ. Measure 1 here is left empty on pass 2,
     so it plays measure 1 of the base line 2 unchanged; only measure 2
     actually varies. -->
<thai-score xmlns="https://thaimusicxml.anan.ovh/ns/1" version="1.0">
  <header><title>Ending inherits an unchanged measure</title></header>
  <structure>
    <repeat times="2"><section id="s1" name="ท่อน 1"/></repeat>
  </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>
        <measure number="2"><note pitch="ล"/><note pitch="ท"/></measure>
      </line>
      <ending pass="2">
        <annotation>เที่ยวที่ 2 ห้องสุดท้ายเปลี่ยนเป็น</annotation>
        <line number="2">
          <measure number="1"></measure>
          <measure number="2"><note pitch="ล"/><note pitch="ดํ"/></measure>
        </line>
      </ending>
    </section-ref>
  </part-data>
</thai-score>
