davidrizo / im3

IM3 library (still unstable)
2 stars 0 forks source link

staffDef@notationtype in MEI conversion #5

Closed craigsapp closed 6 years ago

craigsapp commented 6 years ago

I notice that there is a notationtype called "mensural.white" for notationtype in MEI:

http://music-encoding.org/guidelines/v3/data-types/data.notationtype.html http://music-encoding.org/guidelines/v3/elements/staffdef.html

So in the MEI translations of Humdrum **mens data, mensural.white should be used instead of mensural, as in this file:

https://github.com/davidrizo/im3/blob/develop/imcore/src/test/resources/testdata/core/score/io/kern/apel/pag101_fig1.mei

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://music-encoding.org/schema/3.0.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://music-encoding.org/schema/3.0.0/mei-all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.music-encoding.org/ns/mei" meiversion="3.0.0">
    <meiHead>
        <fileDesc>
            <titleStmt>
                <title></title>
            </titleStmt>
            <pubStmt/>
        </fileDesc>
        <encodingDesc>
            <appInfo>
                <application>
                    <name>David Rizo</name>
                </application>
            </appInfo>
        </encodingDesc>
        <workDesc>
            <work>
                <titleStmt>
                    <title>Wili Apel, page 101</title>
                    <respStmt>
                    </respStmt>
                </titleStmt>
            </work>
        </workDesc>
    </meiHead>
    <music>
        <body>
            <mdiv>
                <score>
                    <scoreDef>
                        <staffGrp>
                            <staffDef n="1" lines="5" label="Example" notationtype="mensural" clef.line="3" clef.shape="C" key.sig="0"/>
                        </staffGrp>
                    </scoreDef>
                    <section>
                        <staff n="1">
                            <layer n="1">
                                <mensur tempus="2" prolatio="2"/> <!-- C -->
                                <note dur="brevis" dots="1" oct="4" pname="f"></note>
                                <ligature form="obliqua">
                                    <note dur="semibrevis" dots="1" oct="4" pname="e"></note>
                                    <note dur="semibrevis" oct="4" pname="d"></note>
                                </ligature>
                                <note dur="semiminima" oct="4" pname="c" stem.dir="up"/>
                                <note dur="minima" oct="4" pname="e" stem.dir="up"/>
                                <note dur="semiminima" oct="4" pname="d" stem.dir="up"/>
                                <note dur="semiminima" oct="4" pname="e" stem.dir="up"/>
                                <note dur="minima" oct="4" pname="f" stem.dir="up"/>
                                <note dur="semiminima" oct="4" pname="e" stem.dir="up"/>
                                <note dur="semiminima" oct="4" pname="d" stem.dir="up"/>
                                <note dur="semiminima" oct="4" pname="c" stem.dir="up"/>
                                <note dur="minima" oct="3" pname="b" stem.dir="up"/>
                                <note dur="semibrevis" oct="4" pname="c"/>
                                <note dur="minima" oct="4" pname="d" stem.dir="up"/>
                                <note dur="brevis" oct="4" pname="e"/>
                            </layer>
                        </staff>
                    </section>
                </score>
            </mdiv>
        </body>
    </music>
</mei>
davidrizo commented 6 years ago

You're right. I'll change it also in IM3.