<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.&nbsp;</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">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;measure&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;staff&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;layer&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;note/&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;sb/&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;staffgrp&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;staffdef&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;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">/&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;/staffdef&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;/staffgrp&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;note/&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;/layer&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;/staff&gt;</span><br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;/measure&gt;</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 &lt;clef&gt; within &lt;sb&gt; &nbsp;is not the best way to encode this, because &lt;sb&gt; &nbsp;applies only the layout as you said, but the &lt;clef&gt; should be &nbsp;regarded as an independent element. If the clef appears in the second measure &nbsp;after a systembreak e.g, you have to indicate that, too, but it has nothing to do with a &lt;sb&gt;.</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">&nbsp;</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">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;measure</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"1"</span><span style="color: #001ea7">/&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;sb/&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;measure</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"2"</span><span style="color: #001ea7">/&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;measure</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"3"</span><span style="color: #001ea7">&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;staffgrp&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;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">/&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;/staffgrp&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;staff</span><span style="color: #f9975e"> n</span><span style="color: #ff9450">=</span><span style="color: #ab4500">"1"</span><span style="color: #001ea7">&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;layer&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;note/&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;/layer&gt;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #001ea7">&lt;/staff&gt;</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); ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #001ea7">&lt;/measure&gt;</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>&nbsp;</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 &lt;staffdef&gt;.</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 &lt;clef&gt; element in MEI is currently only allowed within &lt;clefchange&gt; and &lt;staffdef&gt; elements. I can understand why, since &lt;staff&gt; is supposed to reflect musical linearity and not be affected by system breaks, which is more a physical artifact of page layout. So, a &lt;clef&gt; 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 &lt;clef&gt; in a &lt;clefchange&gt;, 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>&lt;staff n="1"&gt;<br> &nbsp;&lt;layer n="1"&gt;<br> &nbsp;&nbsp;&nbsp;&lt;sb n="1"/&gt;<br> &nbsp;&nbsp;&nbsp;&lt;clef line="3" shape="F"/&gt;<br> &nbsp;&nbsp;&nbsp;&lt;note pname="f" oct="3"/&gt;<br> &nbsp;&nbsp;&nbsp;&lt;note pname="g" oct="3"/&gt;<br> &nbsp;&nbsp;&nbsp;...<br> &nbsp;&nbsp;&nbsp;&lt;sb n="2" /&gt;<br> &nbsp;&nbsp;&nbsp;&lt;clef line="3" shape="F"/&gt;<br> &nbsp;&nbsp;&nbsp;&lt;note pname="c" oct="3"/&gt;<br> &nbsp;&nbsp;&nbsp;&lt;note pname="d" oct="3"/&gt;<br><br> &nbsp;&nbsp;&nbsp;...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 &lt;clefchange&gt; (semantically wrong), b) allowing &lt;clef&gt; directly within layer, or (really crazy) c) changing &lt;sb&gt; to include clef information (e.g., allow &lt;clef&gt; within &lt;sb&gt;, and/or add @clef.shape and @clef.line directly on &lt;sb&gt;.<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>