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: Mats Bengtsson
Subject: Re: How to override bar line?
Date: Thu, 29 Sep 2005 09:45:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Sounds like a useful idea. Just one comment - maybe "left" and "right"
are not the best names since it's rather related to before and after the
line break. I don't have any better idea of a concise naming, though.

  /Mats

Erik Sandberg wrote:

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.


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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