<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Andrew!<div>We think you are right, that a clefchange makes no sense within this context. </div><div>Did you already tried this solution?</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><span style="color: #001ea7"> <measure></span><br>
<span style="color: #001ea7"><staff></span><br>
<span style="color: #001ea7"><layer></span><br>
<span style="color: #001ea7"><note/></span><br>
<span style="color: #001ea7"><sb/></span><br>
<span style="color: #001ea7"><staffgrp></span><br>
<span style="color: #001ea7"><staffdef></span><br>
<span style="color: #001ea7"><clef</span><span style="color: #f9975e"> line</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"2"</span><span style="color: #f9975e"> shape</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"G"</span><span style="color: #001ea7">/></span><br>
<span style="color: #001ea7"></staffdef></span><br>
<span style="color: #001ea7"></staffgrp></span><br>
<span style="color: #001ea7"><note/></span><br>
<span style="color: #001ea7"></layer></span><br>
<span style="color: #001ea7"></staff></span><br>
<span style="color: #001ea7"></measure></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><span style="color: #001ea7"><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" color="#040404">Nothing against crazy solutions ;-), but in our opinion, allowing <clef> within <sb> is not the best way to encode this, because <sb> applies only the layout as you said, but the <clef> should be regarded as an independent element. If the clef appears in the second measure after a systembreak e.g, you have to indicate that, too, but it has nothing to do with a <sb>.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><span style="color: #001ea7"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><span style="color: #001ea7"> <measure</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"1"</span><span style="color: #001ea7">/></span><br>
<span style="color: #001ea7"><sb/></span><br>
<span style="color: #001ea7"><measure</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"2"</span><span style="color: #001ea7">/></span><br>
<span style="color: #001ea7"><measure</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"3"</span><span style="color: #001ea7">></span><br>
<span style="color: #001ea7"><staffgrp></span><br>
<span style="color: #001ea7"><staffdef</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"1"</span><span style="color: #f9975e"> clef.line</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"2"</span><span style="color: #f9975e"> clef.shape</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"G"</span><span style="color: #001ea7">/></span><br>
<span style="color: #001ea7"></staffgrp></span><br>
<span style="color: #001ea7"><staff</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"1"</span><span style="color: #001ea7">></span><br>
<span style="color: #001ea7"><layer></span><br>
<span style="color: #001ea7"><note/></span><br>
<span style="color: #001ea7"></layer></span><br>
<span style="color: #001ea7"></staff></span><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><span style="color: #001ea7"><span class="Apple-style-span" style="color: rgb(0, 0, 0); "> <span style="color: #001ea7"></measure></span></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><span style="color: #001ea7"><span class="Apple-style-span" style="color: rgb(0, 0, 0); "><span style="color: #001ea7"></span></span> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" color="#040200">We would prefer to keep it within <staffdef>.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><span style="color: #001ea7"><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" color="#040302">Best,</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" color="#040302">Kristina and Maja</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" color="#001EA7"><br></font></div><div><br></div><div><br></div><div><br><div><br><div><div>Am 31.05.2011 um 01:18 schrieb Andrew Hankinson, Mr:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi all,<br><br>tl;dr Should clefs be considered a milestone element?<br><br>The <clef> element in MEI is currently only allowed within <clefchange> and <staffdef> elements. I can understand why, since <staff> is supposed to reflect musical linearity and not be affected by system breaks, which is more a physical artifact of page layout. So, a <clef> should only occur if a) it's part of the staff definition, or b) it's changing.<br><br>*However*, an interesting question comes up when encoding clefs at the beginning of systems. Currently, the only way to encode this is to wrap a <clef> in a <clefchange>, but for most of the time, it's not actually changing; it's only a "courtesy" clef.<br><br>So, to give an example. Suppose the following:<br><br><staff n="1"><br> <layer n="1"><br> <sb n="1"/><br> <clef line="3" shape="F"/><br> <note pname="f" oct="3"/><br> <note pname="g" oct="3"/><br> ...<br> <sb n="2" /><br> <clef line="3" shape="F"/><br> <note pname="c" oct="3"/><br> <note pname="d" oct="3"/><br><br> ...etc...<br><br>This is currently invalid MEI, but I'm not really sure how to capture the clefs at the beginning of each system without a) incorporating them into a <clefchange> (semantically wrong), b) allowing <clef> directly within layer, or (really crazy) c) changing <sb> to include clef information (e.g., allow <clef> within <sb>, and/or add @clef.shape and @clef.line directly on <sb>.<br><br>What I'd like to suggest is option b), but I'm sure there's a very good reason why I'm wrong. :)<br><br>-Andrew<br>_______________________________________________<br>mei-l mailing list<br><a href="mailto:mei-l@lists.uni-paderborn.de">mei-l@lists.uni-paderborn.de</a><br>https://lists.uni-paderborn.de/mailman/listinfo/mei-l<br></div></blockquote></div><br></div></div></div></body></html>