[MEI-L] Measure 2 of Erlkonig
Craig Sapp
craigsapp at gmail.com
Fri Mar 17 07:11:32 CET 2017
Hi Morgan & Perry,
> I tried setting the value of chord/@dur to 4. That produced tremolos as
dotted quarter notes (as per the score) but again the Verovio rendering is
out of alignment with staff below. See attached file btrem_3_4.png.
This is a tricky case due to @dots (who is the wize guy/gal who chose this
as the first measure to encode in a tutorial? :-). In Perry's solution:
<bTrem form="meas" num="3" dur="4">
<chord stem.dir="up" stem.mod="1slash" dur="8" dots="1">
<note pname="g" oct="3"/>
<note pname="g" oct="4"/>
</chord>
</bTrem>
the @dots cannot occur on the <chord> because the expanded notation does
not have any dots (this chord is expanded to triplet eighth notes, not
dotted triplet eighth notes):
<tuplet num="3" numbase="2" bracket.visible="false" num.format="count">
<beam stem.dir="up">
<chord dur="8">
<note oct="3" pname="g"/>
<note oct="4" pname="g"/>
</chord>
<chord dur="8">
<note oct="3" pname="g"/>
<note oct="4" pname="g"/>
</chord>
<chord dur="8">
<note oct="3" pname="g"/>
<note oct="4" pname="g"/>
</chord>
</beam>
</tuplet>
Conversely, the @dots cannot be placed on the <bTrem> because the total
duration of the bTrem is a quarter note, not a dotted quarter note.
A possibility is that this encoding could be used:
<bTrem form="meas" num="3" dur="4">
<chord stem.dir="up" stem.mod="1slash" dur="8">
<note pname="g" oct="3"/>
<note pname="g" oct="4"/>
</chord>
</bTrem>
i.e., the duration of the entire group is a quarter note according to bTrem
@dur, but there are three eighth note chords in the expanded version, so
these are therefore triplet eighth notes, and three triplet eight notes
compress into a single triplet dotted quarter note. In other words, the
visual dot is implicitly encoded and pops out of the math necessary to fit
three eighth notes in the time of a quarter note.
But the only other way that I can see that this can be encoded properly,
particularly with an explicit dot, would be to wrap the bTrem inside of a
tuplet:
<tuplet num="3" numbase="2" num.visible="false" bracket.visible="false">
<bTrem form="meas" num="3" dur="4" dots="1">
<chord stem.dir="up" stem.mod="1slash" dur="8">
<note pname="g" oct="3"/>
<note pname="g" oct="4"/>
</chord>
</bTrem>
</tuplet>
And the @dots="1" would be placed on the <bTrem> which now represents a
triplet dotted quarter note.
The alignment duration of the <bTrem> should now be correct: a dotted
triplet quarter note (i.e., a plain quarter note). The duration of the
chord inside the bTrem would also be correct: a triplet eighth note, and
three of them match the duration of the bTrem, so no extra tupletization.
I have not used bTrem yet, but I am wondering why @stem.mod="1slash" is
inside of bTrem rather than on bTrem directly? It seems better for
expanding into uncompressed regular notation, it would be easier if the
styling of the bTrem were not on the contents that is to be repeated.
-=+Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-paderborn.de/pipermail/mei-l/attachments/20170316/d3930232/attachment.html>
More information about the mei-l
mailing list