Closed ndubo closed 5 years ago
This is a good point. If I understand @sameas
correctly it does the same as @copyof
but is not rendered - like a "gestural copyof". Are the children of a referred element included? I mean, in case of a @copyof
meico makes deep copies of the element, is this the same with @sameas
?
Yes, that's the way one could describe it. Children are included such as an <accid>
within a <note>
. The attributes of the element and child elements should be copied, e.g. the moment when the part is extracted (oboe 2 in the above example) or converted to another format such as MIDI.
We were advised to use @sameas
instead of @copyof
; it makes sense und works well when rendering the score. So far, we use it mostly with <rest>
(<mRest>
), <note>
, and <layer>
in case of a unison (when layer 2 is the same as layer 1), occasionally with <clef>
, not with <beam>
.
Done. See meico release v0.6.10. Thanks for your comment. It works with your sample code and hopefully also with all your other files. Please let me know if it still behaves wrong.
For the encoding of orchestral scores, we make extensive use of
@sameas
for rests and notes shared by two instruments (encoded in two layers) on the same staff. Otherwise, full encoding in all layers would result in unwanted double rendering of elements. In the example shown, the quarter rest in m. 11 of the oboes is fully encoded in layer 1 (= oboe 1) but with@sameas
in layer 2 (= oboe 2), i.e.@dur
is found in layer 1 only; the rest in layer 2 has to take the duration from the rest it is pointing at. MEICO currently ignores the rest in layer 2 with the effect that oboe 2 starts on the first beat of the measure instead of the second (echoed by oboe 1 on beat 2). This can be observed throughout mm. 11-14 in the oboes as well as in m. 18 in the horns (eighth rest). Here is the data:The full piece is available at https://dme.mozarteum.at/movi/navigator/165/001/01 Support for
@sameas
, especially for rests, is highly desirable. Otherwise orchestral scores cannot be played with accuracy in MEICO.