lilypond-user
[Top][All Lists]
Advanced

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

Re: How to get bar numbers very close to the staff?


From: Phil Burfitt
Subject: Re: How to get bar numbers very close to the staff?
Date: Mon, 29 Nov 2010 19:25:31 -0000

Hi Marc,

From: "Marc Mouries" <address@hidden>

I'd like to get bar numbers very close to the staff to avoid confusing
them with fingering.
Through Google i could find how to change the position UP or DOWN but i
could not find how to reduce the space between the bar number and the staff.

Here is the snippet for testing i created.
% test bar number close to the staff to avoid confusion with fingering
\version "2.13.40"

melody = \relative c' { c1-1 c1_1 c'1-1 c'1-1 }

\score {
   \new Staff {
     % Layout Settings
     \override Score.BarNumber #'break-visibility = #all-visible
     \override Score.BarNumber #'font-size = #-4
     \override Score.BarNumber #'direction = #DOWN
     % Melody
      \melody
    }
}

--Marc


Do these help...

\override Score.BarNumber #'self-alignment-X = #0
\override Score.BarNumber #'Y-offset = #0

If that is not close enough, then you can use...

\override Score.BarNumber #'extra-offset = #'(0 . 0.3)

Phil.









reply via email to

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