lilypond-user
[Top][All Lists]
Advanced

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

Re: currentBarnumber in layout?


From: Jean-Charles Malahieude
Subject: Re: currentBarnumber in layout?
Date: Wed, 21 Aug 2013 16:31:32 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130805 Thunderbird/17.0.8

Le 21/08/2013 15:05, Thomas Morley disait :
Hi,

playing around with some code to answer a request about setting
BarNumber for the first measure at the German lilypond forum
http://www.lilypondforum.de/index.php?topic=1529.0
I've found:

\version "2.17.24"

\layout {
   \context {
     \Score
     currentBarNumber = #10
   }
}

\new Staff
\relative c' { \bar "" \repeat unfold 10 { c'1 \break } }

My naive expectation was that _every_ BarNumber would get value 10.
Though, it works.

Is this a recommended use?
If yes should it be mentioned somewhere in the docs?


It is mentioned in NR-1.2.5 Bars (unnumbered "Bar numbers").

Very useful with vocal materials where, for instance, the count is reset on an act basis.

What I usually do is setting the counter in a global variable,
like this:

%% Act I - 6 military symphony
global = {
  \time 3/4
  \key c \major
  \set Score.currentBarNumber = #210
  \skip 2. * 35 \bar "||"
}

Cheers,
Jean-Charles



reply via email to

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