[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiple tags
From: |
David Kastrup |
Subject: |
Re: multiple tags |
Date: |
Mon, 23 Apr 2012 00:09:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
James <address@hidden> writes:
> Is is possible to have simultaneous multiple tags?
> I'm trying:
> \version "2.14.2"
>
> 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 } {
> \keepWithTag #'up
> \keepwithTag #'threes
> \tset } >> }
> \score {
> \new Staff << {
> \keepWithTag #'twos
> \control } {
> \keepWithTag #'down
> \keepWithTag #'twos
> \tset } >> }
>
> but lilypond is not happy with the doubled tags.
What makes you think that? It is quite happy, but if you ask it to
remove every tag except #'twos, and then remove every remaining tag
except #'down, naturally nothing will be left. \keepWithTag does not
make sense with nested expressions: you need to use \removeWithTag in
this case.
--
David Kastrup
- multiple tags, James, 2012/04/22
- Re: multiple tags,
David Kastrup <=