lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Combining \tag with \quoteDuring does not work


From: 70147persson
Subject: Combining \tag with \quoteDuring does not work
Date: Mon, 27 Mar 2017 14:21:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.3.0

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' { b4 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]