Skip to content

Export of @trans.diat/@trans.semi not correct? #194

@wergo

Description

@wergo

When exporting a little orchestral score from Sibelius (2019 on Mac) with SibMEI (4.0.0), the pitches of the transposing instruments are kept original (i.e., sounding), but the @trans.diat, @trans.semi attributes are in staffDef as if the instruments were notated as transposed.

However, when exporting to MusicXML, it works as expected.

Test Sibelius file (testorchester.sib):
https://drive.google.com/file/d/1zXBOo-tY3s2jVD28olrt4KQX658gt9_c/view?usp=sharing

With SibMEI (Sibelius set to show transposing score):
grafik

MEI export through SibMEI:
<?xml version="1.0" encoding="UTF-16" ?>
<mei xml:id="m-1" meiversion="4.0.1" xmlns="http://www.music-encoding.org/ns/mei" xmlns:xlink="http://www.w3.org/1999/xlink">
    <meiHead xml:id="m-2">
        <fileDesc xml:id="m-3">
            <titleStmt xml:id="m-4">
                <title xml:id="m-14"/>
                <respStmt xml:id="m-15">
                    <persName xml:id="m-16"/>
                </respStmt>
            </titleStmt>
            <pubStmt xml:id="m-17">
                <availability xml:id="m-18">
                    <useRestrict xml:id="m-19">Copyright © </useRestrict>
                </availability>
            </pubStmt>
        </fileDesc>
        <encodingDesc xml:id="m-5">
            <appInfo xml:id="m-6">
                <application xml:id="sibelius" isodate="2022-3-21T17:22:27Z" version="19100">
                    <name xml:id="m-8" type="operating-system">Mac OS X Mountain Lion</name>
                </application>
                <application xml:id="sibmei" type="plugin" version="4.0.0">
                    <name xml:id="m-10">Sibelius to MEI 4 Exporter (4.0.0)</name>
                </application>
            </appInfo>
        </encodingDesc>
        <workList xml:id="m-11">
            <work xml:id="m-12">
                <title xml:id="m-13"/>
            </work>
        </workList>
    </meiHead>
    <music xml:id="m-21">
        <body xml:id="m-22">
            <mdiv xml:id="m-23">
                <score xml:id="m-25">
                    <scoreDef xml:id="m-26" lyric.name="Times New Roman" meter.count="4" meter.unit="4" music.name="Opus Std" page.botmar="15mm" page.height="297mm" page.leftmar="15mm" page.rightmar="15mm" page.topmar="15mm" page.width="210mm" ppq="256" spacing.staff="11" spacing.system="18.5" text.name="Times New Roman" vu.height="0.525mm">
                        <staffGrp xml:id="m-27">
                            <staffGrp xml:id="m-53" n="1" symbol="bracket">
                                <staffDef xml:id="m-28" clef.line="2" clef.shape="G" key.mode="major" key.sig="2s" lines="5" n="1">
                                    <label xml:id="m-29">Flöte</label>
                                    <labelAbbr xml:id="m-30">Fl.</labelAbbr>
                                    <!-- wind.flutes.flute -->
                                    <instrDef xml:id="m-32" midi.channel="1" midi.pan="68" midi.volume="95"/>
                                </staffDef>
                                <staffDef xml:id="m-33" clef.line="2" clef.shape="G" key.mode="major" key.sig="2s" lines="5" n="2" trans.diat="-1" trans.semi="-2">
                                    <label xml:id="m-34">Klarinette in B</label>
                                    <labelAbbr xml:id="m-35">Kl.</labelAbbr>
                                    <!-- wind.clarinets.clarinet -->
                                    <instrDef xml:id="m-37" midi.channel="1" midi.pan="61" midi.volume="95"/>
                                </staffDef>
                                <staffDef xml:id="m-38" clef.line="2" clef.shape="G" key.mode="major" key.sig="2s" lines="5" n="3" trans.diat="-5" trans.semi="-9">
                                    <label xml:id="m-39">Altsaxophon</label>
                                    <labelAbbr xml:id="m-40">Asax.</labelAbbr>
                                    <!-- wind.saxophones.alto -->
                                    <instrDef xml:id="m-42" midi.channel="1" midi.pan="53" midi.volume="95"/>
                                </staffDef>
                            </staffGrp>
                            <staffDef xml:id="m-43" clef.line="2" clef.shape="G" key.mode="major" key.sig="2s" lines="5" n="4" trans.diat="-1" trans.semi="-2">
                                <label xml:id="m-44">Trompete in B</label>
                                <labelAbbr xml:id="m-45">Trp.</labelAbbr>
                                <!-- brass.trumpets.trumpet -->
                                <instrDef xml:id="m-47" midi.channel="1" midi.pan="77" midi.volume="105"/>
                            </staffDef>
                            <staffDef xml:id="m-48" clef.line="2" clef.shape="G" key.mode="major" key.sig="2s" lines="5" n="5" trans.diat="14" trans.semi="24">
                                <label xml:id="m-49">Glockenspiel</label>
                                <labelAbbr xml:id="m-50">Glsp.</labelAbbr>
                                <!-- pitched percussion.metal.glockenspiel -->
                                <instrDef xml:id="m-52" midi.channel="1" midi.pan="53" midi.volume="100"/>
                            </staffDef>
                        </staffGrp>
                    </scoreDef>
                    <section xml:id="m-54">
                        <pb xml:id="m-20"/>
                        <sb xml:id="m-56"/>
                        <measure xml:id="m-55" n="1">
                            <staff xml:id="m-57" n="1">
                                <layer xml:id="m-58" n="1">
                                    <note xml:id="m-59" dur="4" dur.ppq="256" oct="5" pname="d" pnum="74" stem.dir="down" tstamp.real="00:00:00" vel="0"/>
                                    <note xml:id="m-60" dur="4" dur.ppq="256" oct="4" pname="a" pnum="69" stem.dir="up" tstamp.real="00:00:00.6" vel="0"/>
                                    <note xml:id="m-61" dur="4" dur.ppq="256" oct="5" pname="d" pnum="74" stem.dir="down" tstamp.real="00:00:01.2" vel="0"/>
                                    <note xml:id="m-62" dur="4" dur.ppq="256" oct="5" pname="f" pnum="78" stem.dir="down" tstamp.real="00:00:01.8" vel="0">
                                        <accid xml:id="m-63" accid.ges="s"/>
                                    </note>
                                </layer>
                            </staff>
                            <staff xml:id="m-64" n="2">
                                <layer xml:id="m-65" n="1">
                                    <note xml:id="m-66" dur="4" dur.ppq="256" oct="5" pname="d" pnum="74" stem.dir="down" tstamp.real="00:00:00" vel="0"/>
                                    <note xml:id="m-67" dur="4" dur.ppq="256" oct="4" pname="a" pnum="69" stem.dir="down" tstamp.real="00:00:00.6" vel="0"/>
                                    <note xml:id="m-68" dur="4" dur.ppq="256" oct="5" pname="d" pnum="74" stem.dir="down" tstamp.real="00:00:01.2" vel="0"/>
                                    <note xml:id="m-69" dur="4" dur.ppq="256" oct="5" pname="f" pnum="78" stem.dir="down" tstamp.real="00:00:01.8" vel="0">
                                        <accid xml:id="m-70" accid.ges="s"/>
                                    </note>
                                </layer>
                            </staff>
                            <staff xml:id="m-71" n="3">
                                <layer xml:id="m-72" n="1">
                                    <note xml:id="m-73" dur="4" dur.ppq="256" oct="5" pname="d" pnum="74" stem.dir="down" tstamp.real="00:00:00" vel="0"/>
                                    <note xml:id="m-74" dur="4" dur.ppq="256" oct="4" pname="a" pnum="69" stem.dir="down" tstamp.real="00:00:00.6" vel="0"/>
                                    <note xml:id="m-75" dur="4" dur.ppq="256" oct="5" pname="d" pnum="74" stem.dir="down" tstamp.real="00:00:01.2" vel="0"/>
                                    <note xml:id="m-76" dur="4" dur.ppq="256" oct="5" pname="f" pnum="78" stem.dir="down" tstamp.real="00:00:01.8" vel="0">
                                        <accid xml:id="m-77" accid.ges="s"/>
                                    </note>
                                </layer>
                            </staff>
                            <staff xml:id="m-78" n="4">
                                <layer xml:id="m-79" n="1">
                                    <note xml:id="m-80" dur="4" dur.ppq="256" oct="5" pname="d" pnum="74" stem.dir="down" tstamp.real="00:00:00" vel="0"/>
                                    <note xml:id="m-81" dur="4" dur.ppq="256" oct="4" pname="a" pnum="69" stem.dir="down" tstamp.real="00:00:00.6" vel="0"/>
                                    <note xml:id="m-82" dur="4" dur.ppq="256" oct="5" pname="d" pnum="74" stem.dir="down" tstamp.real="00:00:01.2" vel="0"/>
                                    <note xml:id="m-83" dur="4" dur.ppq="256" oct="5" pname="f" pnum="78" stem.dir="down" tstamp.real="00:00:01.8" vel="0">
                                        <accid xml:id="m-84" accid.ges="s"/>
                                    </note>
                                </layer>
                            </staff>
                            <staff xml:id="m-85" n="5">
                                <layer xml:id="m-86" n="1">
                                    <note xml:id="m-87" dur="4" dur.ppq="256" oct="7" pname="d" pnum="98" stem.dir="down" tstamp.real="00:00:00" vel="0"/>
                                    <note xml:id="m-88" dur="4" dur.ppq="256" oct="6" pname="a" pnum="93" stem.dir="up" tstamp.real="00:00:00.6" vel="0"/>
                                    <note xml:id="m-89" dur="4" dur.ppq="256" oct="7" pname="d" pnum="98" stem.dir="down" tstamp.real="00:00:01.2" vel="0"/>
                                    <note xml:id="m-90" dur="4" dur.ppq="256" oct="7" pname="f" pnum="102" stem.dir="down" tstamp.real="00:00:01.8" vel="0">
                                        <accid xml:id="m-91" accid.ges="s"/>
                                    </note>
                                </layer>
                            </staff>
                        </measure>
                        <measure xml:id="m-92" n="2" right="end">
                            <staff xml:id="m-93" n="1">
                                <layer xml:id="m-94" n="1">
                                    <note xml:id="m-95" dur="4" dur.ppq="256" oct="5" pname="a" pnum="81" stem.dir="down" tstamp.real="00:00:02.4" vel="0"/>
                                    <rest xml:id="m-96" dur="4" dur.ppq="256" tstamp.real="00:00:03"/>
                                    <rest xml:id="m-97" dur="2" dur.ppq="512" tstamp.real="00:00:03.6"/>
                                </layer>
                            </staff>
                            <staff xml:id="m-98" n="2">
                                <layer xml:id="m-99" n="1">
                                    <note xml:id="m-100" dur="4" dur.ppq="256" oct="5" pname="a" pnum="81" stem.dir="down" tstamp.real="00:00:02.4" vel="0"/>
                                    <rest xml:id="m-101" dur="4" dur.ppq="256" tstamp.real="00:00:03"/>
                                    <rest xml:id="m-102" dur="2" dur.ppq="512" tstamp.real="00:00:03.6"/>
                                </layer>
                            </staff>
                            <staff xml:id="m-103" n="3">
                                <layer xml:id="m-104" n="1">
                                    <note xml:id="m-105" dur="4" dur.ppq="256" oct="5" pname="a" pnum="81" stem.dir="down" tstamp.real="00:00:02.4" vel="0"/>
                                    <rest xml:id="m-106" dur="4" dur.ppq="256" tstamp.real="00:00:03"/>
                                    <rest xml:id="m-107" dur="2" dur.ppq="512" tstamp.real="00:00:03.6"/>
                                </layer>
                            </staff>
                            <staff xml:id="m-108" n="4">
                                <layer xml:id="m-109" n="1">
                                    <note xml:id="m-110" dur="4" dur.ppq="256" oct="5" pname="a" pnum="81" stem.dir="down" tstamp.real="00:00:02.4" vel="0"/>
                                    <rest xml:id="m-111" dur="4" dur.ppq="256" tstamp.real="00:00:03"/>
                                    <rest xml:id="m-112" dur="2" dur.ppq="512" tstamp.real="00:00:03.6"/>
                                </layer>
                            </staff>
                            <staff xml:id="m-113" n="5">
                                <layer xml:id="m-114" n="1">
                                    <note xml:id="m-115" dur="4" dur.ppq="256" oct="7" pname="a" pnum="105" stem.dir="down" tstamp.real="00:00:02.4" vel="0"/>
                                    <rest xml:id="m-116" dur="4" dur.ppq="256" tstamp.real="00:00:03"/>
                                    <rest xml:id="m-117" dur="2" dur.ppq="512" tstamp.real="00:00:03.6"/>
                                </layer>
                            </staff>
                        </measure>
                    </section>
                    <annot xml:id="m-24" type="duration">00:00:04.8</annot>
                </score>
            </mdiv>
        </body>
    </music>
</mei>

When exporting to MusicXML, it looks great:
grafik

Imported MEI via MusicXML:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/dev/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/dev/mei-all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="5.0.0-dev">
   <meiHead>
      <fileDesc>
         <titleStmt>
            <title></title>
            <respStmt />
         </titleStmt>
         <pubStmt><availability>
               <distributor>Copyright © </distributor>
            </availability>
            <date isodate="2022-03-21" type="encoding-date">2022-03-21</date>
         </pubStmt>
      </fileDesc>
      <encodingDesc xml:id="encodingdesc-eex4gv">
         <appInfo xml:id="appinfo-4g6mfc">
            <application xml:id="application-af2scl" isodate="2022-03-21T17:38:58" version="3.10.0-dev-4d8c60d">
               <name xml:id="name-u191xm">Verovio</name>
               <p xml:id="p-jn1wo1">Transcoded from MusicXML</p>
            </application>
         </appInfo>
      </encodingDesc>
   </meiHead>
   <music>
      <body>
         <mdiv xml:id="m7amlxo">
            <score xml:id="s2n6kip">
               <scoreDef xml:id="stbw5jb">
                  <staffGrp xml:id="swgv91g">
                     <staffGrp xml:id="suwr3yh">
                        <grpSym xml:id="gvkd17d" symbol="bracket" />
                        <staffDef xml:id="P1" n="1" lines="5" ppq="256">
                           <label xml:id="lvr0bl7">Flöte</label>
                           <labelAbbr xml:id="llwmgvi">Fl.</labelAbbr>
                           <clef xml:id="ca8tr3w" shape="G" color="#000000" line="2" />
                           <keySig xml:id="km1opk6" mode="major" sig="2s" />
                           <meterSig xml:id="m6zappj" count="4" unit="4" />
                        </staffDef>
                        <staffDef xml:id="P2" n="2" lines="5" ppq="256" trans.diat="-1.000000" trans.semi="-2.000000">
                           <label xml:id="l8ebmg2">Klarinette in B</label>
                           <labelAbbr xml:id="lhs58qf">Kl.</labelAbbr>
                           <clef xml:id="c6xcsz1" shape="G" color="#000000" line="2" />
                           <keySig xml:id="krv36pz" mode="major" sig="4s" />
                           <meterSig xml:id="m9rbycv" count="4" unit="4" />
                        </staffDef>
                        <staffDef xml:id="P3" n="3" lines="5" ppq="256" trans.diat="-5.000000" trans.semi="-9.000000">
                           <label xml:id="lyoa4gi">Altsaxophon</label>
                           <labelAbbr xml:id="lla33vx">Asax.</labelAbbr>
                           <clef xml:id="cnbfvza" shape="G" color="#000000" line="2" />
                           <keySig xml:id="kckbprm" mode="major" sig="5s" />
                           <meterSig xml:id="mfnkmks" count="4" unit="4" />
                        </staffDef>
                     </staffGrp>
                     <staffDef xml:id="P4" n="4" lines="5" ppq="256" trans.diat="-1.000000" trans.semi="-2.000000">
                        <label xml:id="lgie5jb">Trompete in B</label>
                        <labelAbbr xml:id="lxnwyje">Trp.</labelAbbr>
                        <clef xml:id="c6g8jg4" shape="G" color="#000000" line="2" />
                        <keySig xml:id="k69fbui" mode="major" sig="4s" />
                        <meterSig xml:id="mfva3qp" count="4" unit="4" />
                     </staffDef>
                     <staffDef xml:id="P5" n="5" lines="5" ppq="256">
                        <label xml:id="lmz1h7v">Glockenspiel</label>
                        <labelAbbr xml:id="lxsyffj">Glsp.</labelAbbr>
                        <clef xml:id="chel0xu" shape="G" color="#000000" line="2" />
                        <keySig xml:id="kugn3ma" mode="major" sig="2s" />
                        <meterSig xml:id="mdfqd1r" count="4" unit="4" />
                     </staffDef>
                  </staffGrp>
               </scoreDef>
               <section xml:id="sga37uq">
                  <pb xml:id="paz1pbr" />
                  <measure xml:id="molyi36" n="1">
                     <staff xml:id="sfjb2j6" n="1">
                        <layer xml:id="lgm0on9" n="1">
                           <note xml:id="no3skob" dur.ppq="256" dur="4" oct="5" pname="d" color="#000000" stem.dir="down" />
                           <note xml:id="nxe0bj3" dur.ppq="256" dur="4" oct="4" pname="a" color="#000000" stem.dir="up" />
                           <note xml:id="nvq30d6" dur.ppq="256" dur="4" oct="5" pname="d" color="#000000" stem.dir="down" />
                           <note xml:id="ner9rlt" dur.ppq="256" dur="4" oct="5" pname="f" color="#000000" stem.dir="down" accid.ges="s" />
                        </layer>
                     </staff>
                     <staff xml:id="sekzc72" n="2">
                        <layer xml:id="lqz6y8x" n="1">
                           <note xml:id="n6b617n" dur.ppq="256" dur="4" oct="5" pname="e" color="#000000" stem.dir="down" />
                           <note xml:id="ngl2n5f" dur.ppq="256" dur="4" oct="4" pname="b" color="#000000" stem.dir="down" />
                           <note xml:id="nak3mhk" dur.ppq="256" dur="4" oct="5" pname="e" color="#000000" stem.dir="down" />
                           <note xml:id="nqcprbc" dur.ppq="256" dur="4" oct="5" pname="g" color="#000000" stem.dir="down" accid.ges="s" />
                        </layer>
                     </staff>
                     <staff xml:id="sb0yn2a" n="3">
                        <layer xml:id="lu56zzd" n="1">
                           <note xml:id="nrkwieb" dur.ppq="256" dur="4" oct="5" pname="b" color="#000000" stem.dir="down" />
                           <note xml:id="n5ecfmo" dur.ppq="256" dur="4" oct="5" pname="f" color="#000000" stem.dir="down" accid.ges="s" />
                           <note xml:id="nutg365" dur.ppq="256" dur="4" oct="5" pname="b" color="#000000" stem.dir="down" />
                           <note xml:id="n8m5g02" dur.ppq="256" dur="4" oct="6" pname="d" color="#000000" stem.dir="down" accid.ges="s" />
                        </layer>
                     </staff>
                     <staff xml:id="s79pj3u" n="4">
                        <layer xml:id="l2sd8n8" n="1">
                           <note xml:id="nkr5qpt" dur.ppq="256" dur="4" oct="5" pname="e" color="#000000" stem.dir="down" />
                           <note xml:id="ns1ei8d" dur.ppq="256" dur="4" oct="4" pname="b" color="#000000" stem.dir="down" />
                           <note xml:id="n9py37r" dur.ppq="256" dur="4" oct="5" pname="e" color="#000000" stem.dir="down" />
                           <note xml:id="nt8lzch" dur.ppq="256" dur="4" oct="5" pname="g" color="#000000" stem.dir="down" accid.ges="s" />
                        </layer>
                     </staff>
                     <staff xml:id="sm2f7cc" n="5">
                        <layer xml:id="lp77bb6" n="1">
                           <note xml:id="nwwco2v" dur.ppq="256" dur="4" oct="5" pname="d" color="#000000" stem.dir="down" />
                           <note xml:id="nev24tx" dur.ppq="256" dur="4" oct="4" pname="a" color="#000000" stem.dir="up" />
                           <note xml:id="nda659x" dur.ppq="256" dur="4" oct="5" pname="d" color="#000000" stem.dir="down" />
                           <note xml:id="nup3mp1" dur.ppq="256" dur="4" oct="5" pname="f" color="#000000" stem.dir="down" accid.ges="s" />
                        </layer>
                     </staff>
                  </measure>
                  <measure xml:id="m32emkp" right="end" n="2">
                     <staff xml:id="smyo5xx" n="1">
                        <layer xml:id="l1sg2sc" n="1">
                           <note xml:id="n20h33r" dur.ppq="256" dur="4" oct="5" pname="a" color="#000000" stem.dir="down" />
                           <rest xml:id="r13gz8a" dur.ppq="256" dur="4" />
                           <rest xml:id="rir9pm2" dur.ppq="512" dur="2" />
                        </layer>
                     </staff>
                     <staff xml:id="sfmytcp" n="2">
                        <layer xml:id="l1fnak9" n="1">
                           <note xml:id="n77cxym" dur.ppq="256" dur="4" oct="5" pname="b" color="#000000" stem.dir="down" />
                           <rest xml:id="rg3npm3" dur.ppq="256" dur="4" />
                           <rest xml:id="r5jl1a4" dur.ppq="512" dur="2" />
                        </layer>
                     </staff>
                     <staff xml:id="scdc6qj" n="3">
                        <layer xml:id="ltewijf" n="1">
                           <note xml:id="nabbki7" dur.ppq="256" dur="4" oct="6" pname="f" color="#000000" stem.dir="down" accid.ges="s" />
                           <rest xml:id="r527ode" dur.ppq="256" dur="4" />
                           <rest xml:id="rm9n3nv" dur.ppq="512" dur="2" />
                        </layer>
                     </staff>
                     <staff xml:id="sotj64g" n="4">
                        <layer xml:id="lcti08a" n="1">
                           <note xml:id="npu4jm" dur.ppq="256" dur="4" oct="5" pname="b" color="#000000" stem.dir="down" />
                           <rest xml:id="rx9rsyj" dur.ppq="256" dur="4" />
                           <rest xml:id="rg7zetf" dur.ppq="512" dur="2" />
                        </layer>
                     </staff>
                     <staff xml:id="s726a2y" n="5">
                        <layer xml:id="lnuq6l2" n="1">
                           <note xml:id="n3n8bsa" dur.ppq="256" dur="4" oct="5" pname="a" color="#000000" stem.dir="down" />
                           <rest xml:id="rjmrk7c" dur.ppq="256" dur="4" />
                           <rest xml:id="ri5tf2b" dur.ppq="512" dur="2" />
                        </layer>
                     </staff>
                  </measure>
               </section>
            </score>
         </mdiv>
      </body>
   </music>
</mei>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions