lilypond-user
[Top][All Lists]
Advanced

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

Re: bar lines and unfolded repeats


From: Dan Eble
Subject: Re: bar lines and unfolded repeats
Date: Mon, 18 Aug 2008 03:32:21 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

David Pounder <pounderd <at> lineone.net> writes:

> 
> I would probably try using \tag round the \bar commands and \removeWithTag for
the volta-repeated section.
> 


Well, it gets the job done (thanks for that), but it's less elegant than I was
hoping for.  For one thing, I don't want to have to remove those bars in the
usual case.  Is there a way to tag something so that it is *not* present by
default, but only when requested?

\version "2.11.52"

sampleNotes = \relative c'
{
   \partial 2
   e e | c c c c | e2 \tag #'unfolded \bar "||"
   \repeat volta 2 { e4 e | e e e e | }
   \alternative {
     { d2 \tag #'unfolded \bar "" }
     { c2 \bar "|." }
   }
}

\book
{
  \score { \unfoldRepeats \sampleNotes }
  \score { \removeWithTag #'unfolded \sampleNotes }
}







reply via email to

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