lilypond-user
[Top][All Lists]
Advanced

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

Re: Suppress command (\arpeggio) in music variable


From: David Nalesnik
Subject: Re: Suppress command (\arpeggio) in music variable
Date: Thu, 25 Dec 2014 12:06:31 -0600



On Thu, Dec 25, 2014 at 10:49 AM, Kieren MacMillan <address@hidden> wrote:
Hi,

> This will prevent it showing up in the output, but it'll still show up in the midi, won't it?

Hmmm… I think it probably will. So maybe use tags instead? e.g. (warning: UNTESTED CODE!):

   barsSixToEight = {
   <<  \new Voice { \voiceOne
       d'8     cs      d       fs4->-\tag #’first-time-only \arpeggio  e8      |
       d8      cs      b       cs4->           b8      |
   }   \new Voice { \voiceTwo
       fs8     g       fs      e4.-\tag #’first-time-only \arpeggio            |
       fs4.                    gs                      |
  }
  >> |
       a8      a       gs      g       fs      e       |
   }

   upperStaff =   \relative c' {
       a4 a a
       \barsSixToEight

       b4 b b
       % Somehow suppress \arpeggio here:
       \removeWithTag #’(first-time-only) \barsSixToEight
   }

Yes, that should work.

I can't test it with the example the OP has given, since it doesn't compile.  Here's a short example I used to test the approach:

 music = {
  <c e g c'>1 -\tag #'f \arpeggio
}

\score {
  \new Staff {
    \removeWithTag #'f \music
    \music
  }
}

--David

reply via email to

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