[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spacing between two sections of the same staff and custom bar number
From: |
Xavier Scheuer |
Subject: |
Re: Spacing between two sections of the same staff and custom bar numbers |
Date: |
Sun, 26 Dec 2010 18:06:05 +0100 |
On 26 December 2010 17:06, Iwillnotexist Idonotexist <address@hidden> wrote:
>
> Hello Lilypond users,
Please reply to all.
I was the only LilyPond user that received your e-mail! ;-D
> Thank you a lot for the tips on spacing. It was exactly what I was looking
> for.
Great. :)
> As for the bar numbers, if I exclude bar numbers skipped because they are in
> a multi-measure rest, I need every barnumber except 12, 16, 24, 32, 40, 48,
> 64 and 73 below the barline (as opposed to the default, above and to the
> left), and the aforementioned exceptions need to be above the staff, in bold
> and boxed. I see in Bar_number_engraver a variable of type procedure called
> barNumberVisibility that decides on printing, and was wondering if this was
> the property to set or override, and if so, how.
This is fairly unconventional.
Here is how I would do that.
Please note that maybe other more talented users may have another
(better) solution.
To print by default _every_ bar numbers _below_ the bar line I would use
\layout {
\context {
\Score
barNumberVisibility = #all-bar-numbers-visible % to print "1" also
\override BarNumber #'break-visibility = #'#(#f #t #t) %
#end-of-line-invisible
\override BarNumber #'direction = #DOWN
\override BarNumber #'self-alignment-X = #CENTER
}
}
Then, to print the exceptions above the staff, in bold and boxed I would
use a variable (let's call it "barNumberMark"):
barNumberMark = {
\once \override Score.BarNumber #'direction = #UP
\once \override Score.BarNumber #'stencil = #(make-stencil-boxer 0.1
0.25 ly:text-interface::print)
\once \override Score.BarNumber #'font-series = #'bold
}
and I would call \barNumberMark each time I want to highlight the bar
number, i.e. measure 12, 16, 24, 32, 40, 48, 64 and 73.
You'll find in attachment my proposal applied to your file.
Cheers,
Xavier
PS: Measure 62 and 72 I also changed your r1 into R1 (whole measure rest
centered).
--
Xavier Scheuer <address@hidden>
magma-mod.ly
Description: Text Data