lilypond-user
[Top][All Lists]
Advanced

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

Re: tie & tag


From: Aaron Hill
Subject: Re: tie & tag
Date: Fri, 22 Nov 2019 14:08:54 -0800
User-agent: Roundcube Webmail/1.3.8

On 2019-11-22 12:49 pm, Gianmaria Lari wrote:
Your code surprise me, so probably I didn't understand how tag do work.
I thought that this

\pushToTag #'here c' \tag #'here { g' }
would be 'converted' to
c' { g' }

[ . . . ]

Could you please give me some hints?

In part, I think the \tag being named #'here is adding to the confusion.

A \tag is not a location per se, but rather it marks the following bit of music with some identifier. It is then this marked music that may be modified by subsequent commands. Consider:

%%%%
\version "2.19.83"

someMusic = \fixed c' {
  %%        pushTo --.     .-- appendTo
  %%                 v     v
  c4 d \tag #'first { e f g } a \tag #'second < b d' > c' d'
  %%                                           ^    ^
  %%                                  pushTo --'    '-- appendTo
}

{
  \cadenzaOn
  \appendToTag #'second \tweak style #'harmonic f''4-2 %% Last
  \appendToTag #'second \tweak style #'cross f''4-1    %%  ^
  \pushToTag #'second \tweak style #'harmonic g'4-2    %%  |  Order
  \pushToTag #'second \tweak style #'cross g'4-1       %%  |    of
  \appendToTag #'first \tweak style #'harmonic g'4-2   %%  |  Appli-
  \appendToTag #'first \tweak style #'cross g'4-1      %%  |  cation
  \pushToTag #'first \tweak style #'harmonic e'4-2     %%  '
  \pushToTag #'first \tweak style #'cross e'4-1        %% First
  \someMusic
}
%%%%

Hopefully my crude ASCII-art above makes it through intact.


-- Aaron Hill

Attachment: tags.cropped.png
Description: PNG image


reply via email to

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