lilypond-devel
[Top][All Lists]
Advanced

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

Re: How to override bar line?


From: Erik Sandberg
Subject: Re: How to override bar line?
Date: Thu, 29 Sep 2005 01:03:48 +0200
User-agent: KMail/1.8.1

On Wednesday 28 September 2005 15.38, Fairchild wrote:
> Erik -
>
> Is this documented somewhere?
>
> \once \override Score.BarLine #'break-glyph-function = #(lambda (glyph dir)
> (if (> 0 dir) "|." "|:"))

Nope, it's something I created using my limited guru skills.

I just looked quickly, and I think \leftBar and \rightBar would be pretty 
clumsy to implement without changing the scheme code for \bar slightly.

Han-Wen, would you accept well-written patches to introduce \leftBar and 
\rightBar commands? Suggestion for semantics:
- \bar sets the barline style for barlines not at line breaks, plus defaults 
for barlines at breaks
- \rightBar and \leftBar override the defaults set by \bar.

So, essentially, there would be a 'left-break-glyph and 'right-break-glyph 
which the default break-glyph-function will look for, and use to override the 
default values.

-- 
Erik




reply via email to

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