lilypond-user
[Top][All Lists]
Advanced

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

Re: Combining \tag with \quoteDuring does not work


From: Kaj Persson
Subject: Re: Combining \tag with \quoteDuring does not work
Date: Mon, 27 Mar 2017 17:45:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.3.0

Oh sorry, this was not according to my intention. And yet I embraced the code with the HTML tags <code> ... </code>, a methode I have been using several times before, with good results. Well I take your words and send this e-mail again as pure text, which means I cannot paste the images, why I instead attach them as files. Sorry for the mistake.

Here is the code:

\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 {}
}

Two images attached:
Layout_of_tag-quoteDuring.png
Midi_of_tag-quoteDuring.png


For the preamble, see the original post (also cited below).

/Kaj

On 2017-03-27 at 14:33,  David Kastrup wrote:
> address@hidden writes:
>
>> 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
> No, I am not going to figure out this heap of code without line breaks.
> I recommend that you switch off HTML-formatted mails in your mail
> program or at the very least learn how to teach it _not_ to wrap lines
> where no line wraps belong.
>
> That being said, tags are a mechanism for manipulating input and quotes
> are a mechanism for recording input and replaying the recorded results
> (which no longer are input put streams of events).
>
> So all of your tag manipulations need to be done by the time you use
> \addQuote .  Maybe you don't need quotes here but rather straightforward
> music variables: those contain the input and are still susceptible to
> tag manipulations.
>


Attachment: Layout_of_tag-quoteDuring.png
Description: PNG image

Attachment: Midi_of_tag-quoteDuring.png
Description: PNG image


reply via email to

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