lilypond-user
[Top][All Lists]
Advanced

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

Re: multiple tags


From: Gilles
Subject: Re: multiple tags
Date: Mon, 23 Apr 2012 17:10:20 +0200
User-agent: Opera Mail/11.62 (Win32)


Is is possible to have simultaneous multiple tags?
What makes you think that?

As i had difficulties managing multiple tags, i have made for me some
little functions to simplify it.
With the joined file, your code would become, with the \keepWithTags :
%%%%%%
\include "tagUtil.ly"

control = {
          s1*2
          \tag #'threes { \time 3/4 s2. }
          \tag #'twos { \time 2/4 s2 } }
tset = \relative c' {
          c4 d e f
          \tag #'up {g4 a b c }
          \tag #'down { g4 f e d }
          \tag #'threes { g4 f e }
          \tag #'twos { g2 } }

\score {
          \new Staff <<
              \keepWithTag #'threes \control
              \keepWithTags #'(up threes) \tset
          >> }
\score {
          \new Staff <<
              \keepWithTag #'twos \control
              \keepWithTags #'(down twos) \tset
          >> }
%%%%%%%%

You can see some examples in the file.

Gilles

Attachment: tagUtil.ly
Description: Binary data


reply via email to

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