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

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to