lilypond-user
[Top][All Lists]
Advanced

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

bar number alignment


From: Pierre Perol-Schneider
Subject: bar number alignment
Date: Sat, 25 May 2019 23:58:25 +0200

Hi,
On the french list a user would like to get bar numbers -- every 3 bars -- center aligned exept when systems start.
Is there a way, such as \alterBroken for spanners, that could help ?
Snippet (with \alterBroken just as an example):

\version "2.21.0"
{
  \override Score.BarNumber.break-visibility = ##(#t #t #t)
  \set Score.barNumberVisibility = #(every-nth-bar-number-visible 3)
  \override Score.BarNumber.stencil = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
  \override Score.BarNumber.self-alignment-X = 0
 
  %% wanted:
  %\alterBroken self-alignment-X #(list 0 1) Score.BarNumber
 
  \set Score.currentBarNumber = 1111
  \repeat unfold 50 c'1
}

Cheers,
Pierre



reply via email to

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