In movements where the music jumps between different sections marked
with segno signs, one has do deal with those in a quite different way in
the layout and the midi scores. Then the \tag is of good help to exclude
parts in the layout score that has to be there in the midi score. Now,
if two voices are almost equal there also a good aid in the \addQuote
and \quoteDuring mechanism. However to combine this with the \tag
facility does not work for me. The quotes neglect the tags and is
running as if they do not exist. I know my snippet is a wee too long,
but I will illustrate the whole situation with signs and others. I also
know that the construction with "D.S. al coda" is not the cleverest, but
it was the shortest I could find out here. To shorten the example I have
not doubled the score, but in the real case the layout score is running
with the "\removeWithTag #'X" while the midi score has this line
removed. Instead of the long \addQuote expression you can write \Mj
(which it is) but no difference. Here is my example:
|\version "2.18.2" Ma = \relative g' { c4 c c } Mb = \relative g' { b*4
b b } Mc = \relative g' { a4 a a a a a \bar "||" } Md = \relative g' {
g4 g g } Mj = { \Ma \Mb \Mc \tag #'X \Mb \Md } Mk = \relative g' {
\quoteDuring "Q" { s1*4*3/4 } \tag #'X { \quoteDuring "Q" { s4*3 } }
\quoteDuring "Q" { s4*3 } } \addQuote "Q" { \Ma \Mb \Mc \tag #'X \Mb \Md
} S = { s1*3/4 \mark \markup { \musicglyph #'"scripts.segno" } s4*3
\mark \markup { \musicglyph #'"scripts.coda" } s2. s4 \mark \markup
\line { "D.S. al" \raise #0.9 \musicglyph #'"scripts.coda" } s2 \tag #'X
{ s4*3 } \break \mark \markup { \musicglyph #'"scripts.coda" } } G = {
\time 3/4 } \paper { ragged-right = ##t indent = #0 } \score {
\removeWithTag #'X { << \new Staff { \G << \new Voice \S \new Voice {
\voiceOne \Mj } >> } \new Staff { \G \new Voice { \voiceTwo \Mk } } >> }
\layout {} % \midi {} } *|
with the layout result:
and the midi:
You can see, that the lower voice in the layout score in the coda
instead of running music section Md is running the Mb, hence it neglects
the tag.
/Kaj
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user