[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic setting custom bar lines
From: |
Hannes Kuhnert |
Subject: |
Re: Automatic setting custom bar lines |
Date: |
Sun, 12 Feb 2012 14:50:59 +0100 |
User-agent: |
KMail/4.8.0 (Linux/3.0.0-16-generic; KDE/4.8.0; x86_64; ; ) |
-Eluze schrieb:
> David Kastrup wrote:
> > Hannes Kuhnert <address@hidden> writes:
> >> I’m sometimes using half length bar lines that way:
> >> | pipeSymbol = {
> >> |
> >> | \once \override Staff.BarLine #'bar-size = #2
> >> | \once \override Staff.BarLine #'extra-offset = #'(0 . 1)
> >> | \bar "|"
> >> |
> >> | }
> >>
> >> and within the voice contect:
> >> | \set Timing.defaultBarType="pipeSymbol"
> >>
> >> Then it’s possible to manually set bar lines with “|”.
> >> How can I get custom styled automatic bar
> >> lines?
> >
> > Just use the overrides in the above definition, but without \once ?
Thanks! I tried something like that before, but made a mistake.
Within the voice section
| \override Staff.BarLine #'bar-size = #2
| \override Staff.BarLine #'extra-offset = #'(0 . 1)
works, but inside of \layout { \context { \Staff … } } of course it has to be
| \override BarLine #'bar-size = #2
| \override BarLine #'extra-offset = #'(0 . 1)
But that changes the style of repeat marks and \bar "|.", too, which isn’t
intended. Is it possible to change the style of the automatic bar lines only?
I don’t think that my objective is too special—at least I’ve got several
sources of music printed that way—so I’m wondering why I couldn’t find a
solution on the LSR.
> newer versions use \override Staff.BarLine #'bar-extent = #'(-1 . 1) iso
> bar-size
It’s annoying, that there are Linux distributions with half-yearly release
cycle, that stick with old versions of LilyPond and even older ones of TeX.
But I really like DPKG and APT, so I would be grateful if anyone could give me
a hint on updating LilyPond on that basis.
Hannes