lilypond-user
[Top][All Lists]
Advanced

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

Re: Skip to Specific Bar


From: Kieren MacMillan
Subject: Re: Skip to Specific Bar
Date: Tue, 10 Sep 2013 16:00:49 -0400

Hi all,

> What Kieren mentioned is new to me too and I would be curious see, how one 
> can use these commands in a context You've mentioned.

The idea is as seen in the snippet, below, where certain music is added "at the 
coda", using tags.
Unfortunately, it doesn't seem to work.
David K: What do I need to change in this snippet to get it to work as expected?

Thanks,
Kieren.

______________________

\version "2.16.2"

\layout {
  \context {
    \Staff
    \RemoveEmptyStaves
    \override VerticalAxisGroup #'remove-first = ##t
  }
}

global = {
  \tag #'intro
    \time 4/4 s1*3
    \time 3/4 s4*3
  \tag #'verse
    \time 5/4 s4*5*12
  \tag #'bridge
    s4*5
    \time 4/4 s1
  \tag #'coda
    \time 2/2 s1*9
  \bar "|."
}

allMusic = \relative c' {
  \repeat "unfold" 120 { c4 }
}

codaMusic = \relative f {
  \pushToTag #'coda
    \repeat "unfold" 6 { f2 }
    \global
}

\score {
  <<
    \new Staff << \global \allMusic >>
    \new Staff << \codaMusic >>
  >>
}


reply via email to

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