[MEI-L] Coordinate system confusion

Klaus Rettinghaus klaus.rettinghaus at gmail.com
Tue Jul 4 22:08:03 CEST 2017


Hi Martha,

if you want to be independent from clefs you may use the @loc attribute:


<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="3.0.0">
  <meiHead>
    <fileDesc>
      <titleStmt>
        <title />
      </titleStmt>
      <pubStmt>
        <date />
      </pubStmt>
    </fileDesc>
  </meiHead>
  <music>
    <body>
      <mdiv>
        <score>
          <scoreDef>
            <staffGrp>
              <staffDef clef.shape="G" clef.line="2" n="1" lines="5" />
            </staffGrp>
          </scoreDef>
          <section>
            <measure n="1">
              <staff n="1">
                <layer n="1">
                  <rest dur="8" loc="2"/>
                  <rest dur="8" loc="6"/>
                  <rest dur="4" loc="0"/>
                  <rest dur="2" loc="-2"/>
                </layer>
              </staff>
            </measure>
            <measure n="2">
              <staff n="1">
                <layer n="1">
                  <clef shape="C" line="3"/>
                  <rest dur="8" loc="2"/>
                  <rest dur="8" loc="6"/>
                  <rest dur="4" loc="0"/>
                  <rest dur="2" loc="-2"/>
                </layer>
              </staff>
            </measure>
            <measure n="3">
              <staff n="1">
                <layer n="1">
                  <clef shape="F" line="4"/>
                  <rest dur="8" loc="2"/>
                  <rest dur="8" loc="6"/>
                  <rest dur="4" loc="0"/>
                  <rest dur="2" loc="-2"/>
                </layer>
              </staff>
            </measure>
            <measure n="4">
              <staff n="1">
                <layer n="1">
                  <clef shape="C" line="1"/>
                  <rest dur="8" loc="2"/>
                  <rest dur="8" loc="6"/>
                  <rest dur="4" loc="0"/>
                  <rest dur="2" loc="-2"/>
                </layer>
              </staff>
            </measure>
          </section>
        </score>
      </mdiv>
    </body>
  </music>
</mei>
‚Äč
Klaus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-paderborn.de/pipermail/mei-l/attachments/20170704/db128f4f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: martha.png
Type: image/png
Size: 12392 bytes
Desc: not available
URL: <http://lists.uni-paderborn.de/pipermail/mei-l/attachments/20170704/db128f4f/attachment.png>


More information about the mei-l mailing list