<div dir="ltr">I am wondering what would happen if in place of the mRest, the relevant bars simply encoded two rests, one after the next. <div><br></div><div>It seems to be valid MEI 4.0 according to MEI Friend and Atom.<br><div><br></div><div><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:1px 0px;margin-top:0px;margin-bottom:0px;line-height:inherit;color:rgb(0,0,0);word-break:break-all;border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline"><rest dur="breve" xml:id="m-2475"/></pre><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:1px 0px;margin-top:0px;margin-bottom:0px;line-height:inherit;color:rgb(0,0,0);word-break:break-all;border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline"><rest dur="1" xml:id="m-24751000"/></pre><div><br></div><div> </div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 5, 2022 at 5:50 PM Andrew Hankinson <andrew.hankinson@rism.digital> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div>Actually, scratch my last message -- `breve 1` is a valid duration, but music21 does not recognize multiple values for the @dur element. It means a breve + whole note. </div><div><br></div>music21 does have a 'Rest.fullMeasure' object, which is probably more appropriate to use in this situation. You would need to test and see if it works, but this function is probably where you would want to make the changes:<div><br></div><div><a href="https://github.com/cuthbertLab/music21/blob/master/music21/mei/base.py#L2312-L2331" target="_blank">https://github.com/cuthbertLab/music21/blob/master/music21/mei/base.py#L2312-L2331</a></div><div><br></div><div>See: <a href="https://web.mit.edu/music21/doc/moduleReference/moduleNote.html#music21.note.Rest.fullMeasure" target="_blank">https://web.mit.edu/music21/doc/moduleReference/moduleNote.html#music21.note.Rest.fullMeasure</a></div><div><br></div><div>If you don't want to make changes to the music21 code, then a "hack" would be to detect values of "breve 1" on `mRest` elements and manually set the object appropriately in the music21 object tree prior to running your analysis. </div><div><br></div><div>-Andrew<br><div><div><br><blockquote type="cite"><div>On 5 Jun 2022, at 23:00, Richard Freedman <<a href="mailto:rfreedma@haverford.edu" target="_blank">rfreedma@haverford.edu</a>> wrote:</div><br><div><div dir="ltr">Thank you Klaus (and Andrew!).<div><br></div><div>It seems I am a bit stuck here, since Music21 does not correctly interpret mRest = Breve under a 3/1 measure. It regards the Breve as 8.0 beats, not 12. Adding the dots="1" in MEI 3 worked. But "breve 1" in MEI 4.0 (which might or might not mean a dotted breve rest) does not seem to work, since Music21 is not compliant with MEI 4.</div><div><br></div><div>Richard<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 5, 2022 at 4:06 PM Klaus Rettinghaus <<a href="mailto:klaus.rettinghaus@gmail.com" target="_blank">klaus.rettinghaus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Richard, <div><br></div><div>the main problem is that the dots attribute has been removed in MEI 4.</div><div>See<br><a href="https://music-encoding.org/guidelines/v4/elements/mrest.html#attributes" target="_blank">https://music-encoding.org/guidelines/v4/elements/mrest.html#attributes</a><div>and</div><div><a href="https://github.com/music-encoding/music-encoding/issues/429" target="_blank">https://github.com/music-encoding/music-encoding/issues/429</a></div><div><br><div dir="ltr">—<div>Dr. Klaus Rettinghaus </div></div><div dir="ltr"><br><blockquote type="cite">Am 05.06.2022 um 19:56 schrieb Andrew Hankinson <<a href="mailto:andrew.hankinson@rism.digital" target="_blank">andrew.hankinson@rism.digital</a>>:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">I can't tell you exactly why it's happening, but I suspect there's something going wrong here:<div><br></div><div><a href="https://github.com/music-encoding/encoding-tools/blob/main/mei30To40/mei30To40.xsl#L367-L415" target="_blank">https://github.com/music-encoding/encoding-tools/blob/main/mei30To40/mei30To40.xsl#L367-L415</a></div><div><br></div><div>Particularly lines 410-413.</div><div><br></div><div><br><div><br><blockquote type="cite"><div>On 5 Jun 2022, at 19:25, Richard Freedman <<a href="mailto:rfreedma@haverford.edu" target="_blank">rfreedma@haverford.edu</a>> wrote:</div><br><div><div dir="auto">I am using MEI garage. We have a script by Raff Viglianti that passes</div><div dir="auto">each of our MEI 3 files to garage, then</div><div dir="auto">saves them locally. </div><div dir="auto"><br></div><div dir="auto">richard </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 5, 2022 at 1:21 PM Andrew Hankinson <<a href="mailto:andrew.hankinson@gmail.com" target="_blank">andrew.hankinson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr"></div><div dir="ltr">Hi Richard,</div><div dir="ltr"><br></div><div dir="ltr">How are you converting the files? What script or service are you using?</div><div dir="ltr"><br></div><div dir="ltr">-Andrew</div><div dir="ltr"><br><div dir="ltr"></div><blockquote type="cite">On 5 Jun 2022, at 18:39, Richard Freedman <<a href="mailto:rfreedma@haverford.edu" target="_blank">rfreedma@haverford.edu</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Friends,<div><br></div><div>I am wondering whether someone can help me with confusion about the encoding of mRests.</div><div><br></div><div>Our MEI 3.0 files have certain bars with mRest under a time signature of 3/1.</div><div><br></div><div>The dur of these mRests is recorded as breve in MEI 3.0. We need, however, to add dots="1" to these for subsequent processing with music21. This works.</div><div><br></div><div>However, when I convert these files to MEI 4.0. I also see a dur of "breve 1", and the dots="1" are gone.</div><div><br></div><div>What is the meaning of "breve 1" here? I cannot seem to find the documentation of this attribute value.</div><div><br></div><div>Thanks!</div><div><br></div><div>Richard</div><div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font size="2" face="arial, sans-serif">Richard Freedman</font></div><div><font size="2" face="arial, sans-serif">Professor of Music</font></div><div><font size="2" face="arial, sans-serif">John C. Whitehead '43 Professor of Humanities</font></div><div><font size="2" face="arial, sans-serif">Chair, Department of Music</font></div><div><font face="arial, sans-serif"><font size="2">Haverford College<br>Haverford, PA 19041<br><br>610-389-0595<br><br><br></font><a href="http://www.haverford.edu/users/rfreedma" target="_blank">http://www.haverford.edu/users/rfreedma</a><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Schedule meeting time: <a href="https://bit.ly/3D0NAQ4" target="_blank">https://bit.ly/3D0NAQ4</a></font></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<span>_______________________________________________</span><br><span>mei-l mailing list</span><br><span><a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank">mei-l@lists.uni-paderborn.de</a></span><br><span><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a></span><br></div></blockquote></div>_______________________________________________<br>
mei-l mailing list<br>
<a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank">mei-l@lists.uni-paderborn.de</a><br>
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" rel="noreferrer" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
</blockquote></div></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font size="2" face="arial, sans-serif">Richard Freedman</font></div><div><font size="2" face="arial, sans-serif">Professor of Music</font></div><div><font size="2" face="arial, sans-serif">John C. Whitehead '43 Professor of Humanities</font></div><div><font size="2" face="arial, sans-serif">Chair, Department of Music</font></div><div><font face="arial, sans-serif"><font size="2">Haverford College<br>Haverford, PA 19041<br><br>610-389-0595<br><br><br></font><a href="http://www.haverford.edu/users/rfreedma" target="_blank">http://www.haverford.edu/users/rfreedma</a><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Schedule meeting time: <a href="https://bit.ly/3D0NAQ4" target="_blank">https://bit.ly/3D0NAQ4</a></font></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>mei-l mailing list<br><a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank">mei-l@lists.uni-paderborn.de</a><br><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br></div></blockquote></div><br></div><span>_______________________________________________</span><br><span>mei-l mailing list</span><br><span><a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank">mei-l@lists.uni-paderborn.de</a></span><br><span><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a></span><br></div></blockquote></div></div></div>_______________________________________________<br>
mei-l mailing list<br>
<a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank">mei-l@lists.uni-paderborn.de</a><br>
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" rel="noreferrer" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font size="2" face="arial, sans-serif">Richard Freedman</font></div><div><font size="2" face="arial, sans-serif">Professor of Music</font></div><div><font size="2" face="arial, sans-serif">John C. Whitehead '43 Professor of Humanities</font></div><div><font size="2" face="arial, sans-serif">Chair, Department of Music</font></div><div><font face="arial, sans-serif"><font size="2">Haverford College<br>Haverford, PA 19041<br><br>610-389-0595<br><br><br></font><a href="http://www.haverford.edu/users/rfreedma" target="_blank">http://www.haverford.edu/users/rfreedma</a><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Schedule meeting time: <a href="https://bit.ly/3D0NAQ4" target="_blank">https://bit.ly/3D0NAQ4</a></font></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>mei-l mailing list<br><a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank">mei-l@lists.uni-paderborn.de</a><br><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br></div></blockquote></div><br></div></div></div>_______________________________________________<br>
mei-l mailing list<br>
<a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank">mei-l@lists.uni-paderborn.de</a><br>
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" rel="noreferrer" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font size="2" face="arial, sans-serif">Richard Freedman</font></div><div><font size="2" face="arial, sans-serif">Professor of Music</font></div><div><font size="2" face="arial, sans-serif">John C. Whitehead '43 Professor of Humanities</font></div><div><font size="2" face="arial, sans-serif">Chair, Department of Music</font></div><div><font face="arial, sans-serif"><font size="2">Haverford College<br>Haverford, PA 19041<br><br>610-389-0595<br><br><br></font><a href="http://www.haverford.edu/users/rfreedma" target="_blank">http://www.haverford.edu/users/rfreedma</a><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Schedule meeting time: <a href="https://bit.ly/3D0NAQ4" target="_blank">https://bit.ly/3D0NAQ4</a></font></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>