lilypond-user
[Top][All Lists]

## Re: bar lines at the beginning of staves

 From: Thomas Morley Subject: Re: bar lines at the beginning of staves Date: Mon, 19 Dec 2011 01:13:31 +0100

2011/12/19 luis jure <address@hidden>:

> thanks a lot, writing scheme functions is way above my limited abilities...

you may have a look in output-lib.scm
You'll see I just copied and modified the code. :)

>
> i still have a question, though, because i am far from understanding the
> logic of lilypond syntax (and even less its internals): isn't it possible
> to just print a bar at any arbitrary place? why doesn't it work at the
> beginning of the staff?

Well, I'm not a developer, but I'm sure they will agree, when I say: a
bar at the beginning of a line is nonsense.

The following illustrates a curious output, if this would be the default:

\relative c' {
c1
\break
\bar ":|:"

\once\override Score.BreakAlignment #'break-align-orders =
#(make-vector 3
'(left-edge
staff-bar
ambitus
breathing-sign
clef
key-cancellation
key-signature
time-signature
custos))

d1
}

A vertikal line at begin should be the duty of the SystemStartBar. But
because I didn't manage to hack the SystemStartBar to the desired
output, I created this workaround.

BTW, it will only work with \bar "|" . If you want e.g. \bar ":|:" at
a linebreak more hackish trickery is needed (and I'm not sure, if it
will work at all)

Best,
Harm