davidrizo / im3

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

One octave too high #1

Closed craigsapp closed 6 years ago

craigsapp commented 6 years ago

For this MEI encoding:

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

The octaves are one too high.

Rendering in VHV:

screen shot 2018-04-23 at 7 22 43 am

Lowering the octave by one:

screen shot 2018-04-23 at 7 23 35 am

Lowered data:

<?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" stem.dir="up"/>
                                <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>

Rendering of the MEI data can be viewed in VHV by pressing alt-m to go into MEI mode, then pasting the data into the text editor:

screen shot 2018-04-23 at 7 29 31 am
craigsapp commented 6 years ago

The problem is in the Humdrum encoding:

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

The pitches are encoded one octave too high:

!!!OTL: Willi Apel, pg. 101
**mens
!Example
*clefC3
*k[]
*M4/4
*met(C)
S:ff
<s:ee
sdd>
mcc/
Mee/
mdd/
mee/
Mff/
mee/
mdd/
mcc/
Mb/
scc/
Mdd/
See
*-

Should most likely be:

!!!OTL: Willi Apel, pg. 101
**mens
!Example
*clefC3
*k[]
*M4/4
*met(C)
S:f
<s:e
sd>
mc/
Me/
md/
me/
Mf/
me/
md/
mc/
MB/
sc/
Md/
Se
*-

I will have to get my copy of the Apel book to verify.

davidrizo commented 6 years ago

OK, corrected