[MEI-L] [EXT] Re: showing change of mensuration in new section

Andrew Hankinson andrew.hankinson at rism.digital
Fri Jul 9 09:24:29 CEST 2021


If you remove the 'proport' element and use the 'mensur' element to encode the change in your second example, then Verovio seems to render it as expected.

<section>
  <staff n="1">
    <layer n="1">
      <mensur num="3" sign="C" slash="1" />
      <note pname="a" oct="4" dur="1" dots="1" />
      <note pname="a" oct="4" dur="2" />
      <note pname="g" oct="4" dur="1" />
      <note pname="a" oct="4" dur="breve" />
      <note pname="a" oct="4" dur="1" />
      <barLine form="end"/>
    </layer>
  </staff>
  <staff n="4">
    <layer n="1">
      <mensur sign="C" slash="1" num="3" />
      <note pname="d" oct="3" dur="1" dots="1" />
      <note pname="c" oct="3" dur="2" accid="s" />
      <note pname="b" oct="2" dur="1" accid="f" />
      <note pname="a" oct="2" dur="breve" />
      <note pname="d" oct="3" dur="1" />
      <barLine form="end"/>
    </layer>
  </staff>
</section>



The mensural example on the Verovio page has some handy patterns to follow. 

https://www.verovio.org/test-suite.xhtml?cat=mensural

There were also a few XML errors in your examples (mostly around duplicate xml:id values). An XML editor can help you spot these problems, since they're probably going to cause other rendering issues if they aren't already.

Cheers!
-Andrew

> On 8 Jul 2021, at 15:59, Cashner, Andrew <andrew.cashner at rochester.edu> wrote:
> 
> From an MEI-only perspective, then, is the first example correctly encoded? 
> Best,
> Andrew
> From: mei-l <mei-l-bounces at lists.uni-paderborn.de> on behalf of Klaus Rettinghaus <klaus.rettinghaus at gmail.com>
> Sent: Thursday, July 8, 2021 9:29:06 AM
> To: Music Encoding Initiative <mei-l at lists.uni-paderborn.de>
> Subject: [EXT] Re: [MEI-L] showing change of mensuration in new section
>  
> Dear Andrew, 
> 
> maybe this question is better to address directly to the Verovio developers than the entire community?
> 
> Best, 
> Klaus
> 
>> Am 08.07.2021 um 15:01 schrieb Cashner, Andrew <andrew.cashner at rochester.edu>:
>> 
>> Dear colleagues,
>>  
>> I cannot get changes of mensuration to show at the beginning of new sections. I am encoding 17th-century music in mensural style, putting <staff> and <layer> directly within <section> elements, and not using <measure> at all. I’m rendering with Verovio. 
>>  
>> If I put the mensuration change inside a <scoreDef> within the <section>, no new mensuration shows at all. If I put <mensur> and <proport> elements directly into the <layer>, then it does show, but the proportion number is placed incorrectly (after or overlapping the first note). Example 1 below shows the scoreDef approach, and example 2 shows the layer approach. The first mensuration signature in this example should be “C3” and the second should be “cutC 3”.
>>  
>> I will be grateful for any help you can provide, and my apologies if there is something I missed in the documentation.
>>  
>> Best,
>> Andrew
>>  
>> Example 1:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <mei xmlns=https://www.music-encoding.org/ns/mei meiversion="4.0.1">
>>   <meiHead>
>>     <fileDesc>
>>       <titleStmt>
>>         <title />
>>       </titleStmt>
>>       <pubStmt />
>>     </fileDesc>
>>     <encodingDesc />
>>   </meiHead>
>>   <music>
>>     <body>
>>       <mdiv>
>>         <score>
>>           <scoreDef>
>>             <staffGrp xml:id="chorus" n="1" bar.thru="false" symbol="bracket">
>>               <staffDef xml:id="soprano" n="1" 
>>                 lines="5" clef.line="2" clef.shape="G" 
>>                 mensur.sign="C" mensur.tempus="2" proport.num="3" key.sig="0" />
>>               <staffDef xml:id="bass" n="4" 
>>                 lines="5" clef.line="4" clef.shape="F" xml:id="midi.P4"
>>                 mensur.sign="C" mensur.tempus="2" proport.num="3" key.sig="0" />
>>             </staffGrp>
>>           </scoreDef>
>>           <section>
>>             <staff xml:id="soprano" n="1">
>>               <layer n="1">
>>                 <note pname="a" oct="4" dur="2" />
>>                 <note pname="a" oct="4" dur="2" />
>>                 <note pname="b" oct="4" dur="2" accid="f" />
>>                 <note pname="a" oct="4" dur="1" />
>>                 <note pname="a" oct="4" dur="2" />
>>                 <barLine form="dbl"/>
>>               </layer>
>>             </staff>
>>             <staff xml:id="bass" n="4">
>>               <layer n="1">
>>                 <note pname="d" oct="3" dur="2" />
>>                 <note pname="d" oct="3" dur="2" />
>>                 <note pname="g" oct="3" dur="2" />
>>                 <note pname="a" oct="3" dur="1" />
>>                 <note pname="d" oct="3" dur="2" />
>>                 <barLine form="dbl"/>
>>               </layer>
>>             </staff>
>>           </section>
>>           <section>
>>             <scoreDef>
>>               <staffGrp xml:id="chorus" n="1">
>>                 <staffDef xml:id="soprano" n="1"
>>                   mensur.sign="C" slash="1" tempus="2" proport.num="3" />
>>                 <staffDef xml:id="alto" n="2"
>>                  mensur.sign="C" slash="1" tempus="2" proport.num="3" />
>>                 <staffDef xml:id="tenor" n="3"
>>                   mensur.sign="C" slash="1" tempus="2" proport.num="3" />
>>                 <staffDef xml:id="bass" n="4"
>>                   mensur.sign="C" slash="1" tempus="2" proport.num="3" />
>>               </staffGrp>
>>             </scoreDef>
>>             <staff xml:id="soprano" n="1">
>>               <layer n="1">
>>                 <note pname="a" oct="4" dur="1" dots="1" />
>>                 <note pname="a" oct="4" dur="2" />
>>                 <note pname="g" oct="4" dur="1" />
>>                 <note pname="a" oct="4" dur="breve" />
>>                 <note pname="a" oct="4" dur="1" />
>>                 <barLine form="end"/>
>>               </layer>
>>             </staff>
>>             <staff xml:id="bass" n="4">
>>               <layer n="1">
>>                 <note pname="d" oct="3" dur="1" dots="1" />
>>                 <note pname="c" oct="3" dur="2" accid="s" />
>>                 <note pname="b" oct="2" dur="1" accid="f" />
>>                 <note pname="a" oct="2" dur="breve" />
>>                 <note pname="d" oct="3" dur="1" />
>>                 <barLine form="end"/>
>>               </layer>
>>            </staff>
>>           </section>
>>         </score>
>>       </mdiv>
>>     </body>
>>   </music>
>> </mei>
>>  
>> Example 2:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <mei xmlns=https://www.music-encoding.org/ns/mei meiversion="4.0.1">
>>   <meiHead>
>>     <fileDesc>
>>       <titleStmt>
>>         <title />
>>       </titleStmt>
>>       <pubStmt />
>>     </fileDesc>
>>     <encodingDesc />
>>   </meiHead>
>>   <music>
>>     <body>
>>       <mdiv>
>>         <score>
>>           <scoreDef>
>>             <staffGrp xml:id="chorus" n="1" bar.thru="false" symbol="bracket">
>>               <staffDef xml:id="soprano" n="1" 
>>                 lines="5" clef.line="2" clef.shape="G" 
>>                 mensur.sign="C" mensur.tempus="2" proport.num="3" key.sig="0" />
>>               <staffDef xml:id="bass" n="4" 
>>                 lines="5" clef.line="4" clef.shape="F" xml:id="midi.P4"
>>                 mensur.sign="C" mensur.tempus="2" proport.num="3" key.sig="0" />
>>             </staffGrp>
>>           </scoreDef>
>>           <section>
>>             <staff xml:id="soprano" n="1">
>>               <layer n="1">
>>                 <note pname="a" oct="4" dur="2" />
>>                 <note pname="a" oct="4" dur="2" />
>>                 <note pname="b" oct="4" dur="2" accid="f" />
>>                 <note pname="a" oct="4" dur="1" />
>>                 <note pname="a" oct="4" dur="2" />
>>                 <barLine form="dbl"/>
>>               </layer>
>>             </staff>
>>             <staff xml:id="bass" n="4">
>>               <layer n="1">
>>                 <note pname="d" oct="3" dur="2" />
>>                 <note pname="d" oct="3" dur="2" />
>>                 <note pname="g" oct="3" dur="2" />
>>                 <note pname="a" oct="3" dur="1" />
>>                 <note pname="d" oct="3" dur="2" />
>>                 <barLine form="dbl"/>
>>               </layer>
>>             </staff>
>>           </section>
>>           <section>
>>             <staff xml:id="soprano" n="1">
>>               <layer n="1">
>>                 <mensur sign="C" slash="1" tempus="2"/>
>>                 <proport num="3"/>
>>                 <note pname="a" oct="4" dur="1" dots="1" />
>>                 <note pname="a" oct="4" dur="2" />
>>                 <note pname="g" oct="4" dur="1" />
>>                 <note pname="a" oct="4" dur="breve" />
>>                 <note pname="a" oct="4" dur="1" />
>>                 <barLine form="end"/>
>>               </layer>
>>             </staff>
>>             <staff xml:id="bass" n="4">
>>               <layer n="1">
>>                 <mensur sign="C" slash="1" tempus="2"/>
>>                 <proport num="3"/>
>>                 <note pname="d" oct="3" dur="1" dots="1" />
>>                 <note pname="c" oct="3" dur="2" accid="s" />
>>                 <note pname="b" oct="2" dur="1" accid="f" />
>>                 <note pname="a" oct="2" dur="breve" />
>>                 <note pname="d" oct="3" dur="1" />
>>                 <barLine form="end"/>
>>               </layer>
>>             </staff>
>>           </section>
>>         </score>
>>       </mdiv>
>>     </body>
>>   </music>
>> </mei>
>>  
>> ***
>> Andrew A. Cashner, PhD
>> Assistant professor of music, University of Rochester
>>  
>> _______________________________________________
>> mei-l mailing list
>> mei-l at lists.uni-paderborn.de
>> https://lists.uni-paderborn.de/mailman/listinfo/mei-l
> 
> _______________________________________________
> mei-l mailing list
> mei-l at lists.uni-paderborn.de
> https://lists.uni-paderborn.de/mailman/listinfo/mei-l

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-paderborn.de/pipermail/mei-l/attachments/20210709/1cb070f0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 32939 bytes
Desc: not available
URL: <http://lists.uni-paderborn.de/pipermail/mei-l/attachments/20210709/1cb070f0/attachment.png>


More information about the mei-l mailing list