[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bar number and time signature positioning
From: |
Thomas Morley |
Subject: |
Re: Bar number and time signature positioning |
Date: |
Sat, 17 Nov 2012 03:14:15 +0100 |
2012/11/15 Nathan <address@hidden>:
[...]
> 1. How do I position the bar numbers on the second and third lines directly
> above the bar lines?
You have to override BarNumber: 'break-align-symbols
and for centering above the BarLine, BarNumber: 'self-alignment-X
>
> 2. How do I put the time signatures on lines 1 and 2 before the bar lines?
> (I unsuccessfully tried messing with 'break-align-orders.)
Changing 'break-align-orders is the way. But the IR shows only how to
change it for all possibilities (i.e end-of-line, middle-of-line and
begin-of-line) via make-vector 3
That's not what you want here. You have to rearrange the whole list.
Having done so, there's need to readjust some spacing of the
TimeSignature via TimeSignature: 'space-alist.
I've no idea why I had to differ between end-of-line and begin-of-line.
\version "2.16.0"
\new Staff {
\override Score.BarNumber #'break-align-symbols = #'(staff-bar)
\override Score.BarNumber #'self-alignment-X = #CENTER
\override Score.TimeSignature #'before-line-breaking =
#(lambda (grob)
(if (and (ly:item? grob)
(equal? (ly:item-break-dir grob) LEFT))
(ly:grob-set-property! grob 'space-alist
'((cue-clef extra-space . 1.5)
(first-note fixed-space . 2.0)
(right-edge extra-space . 0.5)
(key-cancellation extra-space . 0.5)
(key-signature extra-space . 0.5)
(staff-bar minimum-space . 3.1)))))
\override Score.BreakAlignment #'break-align-orders =
#'#(
;;end-of-line
(left-edge
cue-end-clef
ambitus
breathing-sign
clef
cue-clef
time-signature
staff-bar
key-cancellation
key-signature
custos)
;;middle-of-line
(left-edge
cue-end-clef
ambitus
breathing-sign
clef
cue-clef
staff-bar
key-cancellation
key-signature
time-signature
custos)
;; begin-of-line
(left-edge
ambitus
breathing-sign
clef
key-cancellation
key-signature
time-signature
staff-bar
cue-clef
custos))
\bar "|:" c'1 \break
\time 3/4 \bar ":|:" c'2. \break
\bar ":|:" c'2. \bar ":|"
}
HTH,
Harm