<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">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 class=""><br class=""></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 class=""><br class=""></div><div class=""><a href="https://github.com/cuthbertLab/music21/blob/master/music21/mei/base.py#L2312-L2331" class="">https://github.com/cuthbertLab/music21/blob/master/music21/mei/base.py#L2312-L2331</a></div><div class=""><br class=""></div><div class="">See: <a href="https://web.mit.edu/music21/doc/moduleReference/moduleNote.html#music21.note.Rest.fullMeasure" class="">https://web.mit.edu/music21/doc/moduleReference/moduleNote.html#music21.note.Rest.fullMeasure</a></div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">-Andrew<br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 5 Jun 2022, at 23:00, Richard Freedman <<a href="mailto:rfreedma@haverford.edu" class="">rfreedma@haverford.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thank you Klaus (and Andrew!).<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Richard<br class=""><div class=""><br class=""></div><div class=""><br class=""></div></div></div><br class=""><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" class="">klaus.rettinghaus@gmail.com</a>> wrote:<br class=""></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" class="">Hi Richard, <div class=""><br class=""></div><div class="">the main problem is that the dots attribute has been removed in MEI 4.</div><div class="">See<br class=""><a href="https://music-encoding.org/guidelines/v4/elements/mrest.html#attributes" target="_blank" class="">https://music-encoding.org/guidelines/v4/elements/mrest.html#attributes</a><div class="">and</div><div class=""><a href="https://github.com/music-encoding/music-encoding/issues/429" target="_blank" class="">https://github.com/music-encoding/music-encoding/issues/429</a></div><div class=""><br class=""><div dir="ltr" class="">—<div class="">Dr. Klaus Rettinghaus </div></div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">Am 05.06.2022 um 19:56 schrieb Andrew Hankinson <<a href="mailto:andrew.hankinson@rism.digital" class="">andrew.hankinson@rism.digital</a>>:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class="">I can't tell you exactly why it's happening, but I suspect there's something going wrong here:<div class=""><br class=""></div><div class=""><a href="https://github.com/music-encoding/encoding-tools/blob/main/mei30To40/mei30To40.xsl#L367-L415" target="_blank" class="">https://github.com/music-encoding/encoding-tools/blob/main/mei30To40/mei30To40.xsl#L367-L415</a></div><div class=""><br class=""></div><div class="">Particularly lines 410-413.</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 5 Jun 2022, at 19:25, Richard Freedman <<a href="mailto:rfreedma@haverford.edu" target="_blank" class="">rfreedma@haverford.edu</a>> wrote:</div><br class=""><div class=""><div dir="auto" class="">I am using MEI garage. We have a script by Raff Viglianti that passes</div><div dir="auto" class="">each of our MEI 3 files to garage, then</div><div dir="auto" class="">saves them locally. </div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">richard </div><div class=""><br class=""><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" class="">andrew.hankinson@gmail.com</a>> wrote:<br class=""></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" class=""><div dir="ltr" class=""></div><div dir="ltr" class="">Hi Richard,</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">How are you converting the files? What script or service are you using?</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">-Andrew</div><div dir="ltr" class=""><br class=""><div dir="ltr" class=""></div><blockquote type="cite" class="">On 5 Jun 2022, at 18:39, Richard Freedman <<a href="mailto:rfreedma@haverford.edu" target="_blank" class="">rfreedma@haverford.edu</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class="">Friends,<div class=""><br class=""></div><div class="">I am wondering whether someone can help me with confusion about the encoding of mRests.</div><div class=""><br class=""></div><div class="">Our MEI 3.0 files have certain bars with mRest under a time signature of 3/1.</div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">What is the meaning of "breve 1" here? I cannot seem to find the documentation of this attribute value.</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">Richard</div><div class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><font size="2" face="arial, sans-serif" class="">Richard Freedman</font></div><div class=""><font size="2" face="arial, sans-serif" class="">Professor of Music</font></div><div class=""><font size="2" face="arial, sans-serif" class="">John C. Whitehead '43 Professor of Humanities</font></div><div class=""><font size="2" face="arial, sans-serif" class="">Chair, Department of Music</font></div><div class=""><font face="arial, sans-serif" class=""><font size="2" class="">Haverford College<br class="">Haverford, PA 19041<br class=""><br class="">610-389-0595<br class=""><br class=""><br class=""></font><a href="http://www.haverford.edu/users/rfreedma" target="_blank" class="">http://www.haverford.edu/users/rfreedma</a><br class=""></font></div><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">Schedule meeting time: <a href="https://bit.ly/3D0NAQ4" target="_blank" class="">https://bit.ly/3D0NAQ4</a></font></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<span class="">_______________________________________________</span><br class=""><span class="">mei-l mailing list</span><br class=""><span class=""><a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank" class="">mei-l@lists.uni-paderborn.de</a></span><br class=""><span class=""><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank" class="">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a></span><br class=""></div></blockquote></div>_______________________________________________<br class="">
mei-l mailing list<br class="">
<a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank" class="">mei-l@lists.uni-paderborn.de</a><br class="">
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" rel="noreferrer" target="_blank" class="">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br class="">
</blockquote></div></div>-- <br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><font size="2" face="arial, sans-serif" class="">Richard Freedman</font></div><div class=""><font size="2" face="arial, sans-serif" class="">Professor of Music</font></div><div class=""><font size="2" face="arial, sans-serif" class="">John C. Whitehead '43 Professor of Humanities</font></div><div class=""><font size="2" face="arial, sans-serif" class="">Chair, Department of Music</font></div><div class=""><font face="arial, sans-serif" class=""><font size="2" class="">Haverford College<br class="">Haverford, PA 19041<br class=""><br class="">610-389-0595<br class=""><br class=""><br class=""></font><a href="http://www.haverford.edu/users/rfreedma" target="_blank" class="">http://www.haverford.edu/users/rfreedma</a><br class=""></font></div><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">Schedule meeting time: <a href="https://bit.ly/3D0NAQ4" target="_blank" class="">https://bit.ly/3D0NAQ4</a></font></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">mei-l mailing list<br class=""><a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank" class="">mei-l@lists.uni-paderborn.de</a><br class=""><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank" class="">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br class=""></div></blockquote></div><br class=""></div><span class="">_______________________________________________</span><br class=""><span class="">mei-l mailing list</span><br class=""><span class=""><a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank" class="">mei-l@lists.uni-paderborn.de</a></span><br class=""><span class=""><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank" class="">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a></span><br class=""></div></blockquote></div></div></div>_______________________________________________<br class="">
mei-l mailing list<br class="">
<a href="mailto:mei-l@lists.uni-paderborn.de" target="_blank" class="">mei-l@lists.uni-paderborn.de</a><br class="">
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" rel="noreferrer" target="_blank" class="">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br class="">
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><font size="2" face="arial, sans-serif" class="">Richard Freedman</font></div><div class=""><font size="2" face="arial, sans-serif" class="">Professor of Music</font></div><div class=""><font size="2" face="arial, sans-serif" class="">John C. Whitehead '43 Professor of Humanities</font></div><div class=""><font size="2" face="arial, sans-serif" class="">Chair, Department of Music</font></div><div class=""><font face="arial, sans-serif" class=""><font size="2" class="">Haverford College<br class="">Haverford, PA 19041<br class=""><br class="">610-389-0595<br class=""><br class=""><br class=""></font><a href="http://www.haverford.edu/users/rfreedma" target="_blank" class="">http://www.haverford.edu/users/rfreedma</a><br class=""></font></div><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">Schedule meeting time: <a href="https://bit.ly/3D0NAQ4" target="_blank" class="">https://bit.ly/3D0NAQ4</a></font></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">mei-l mailing list<br class=""><a href="mailto:mei-l@lists.uni-paderborn.de" class="">mei-l@lists.uni-paderborn.de</a><br class="">https://lists.uni-paderborn.de/mailman/listinfo/mei-l<br class=""></div></blockquote></div><br class=""></div></div></body></html>