On 2010-11-21 13:55, Marc Mouries wrote:

thanks Ted, that could do it. The tricky part though is that Bach uses a
half-bar every other measure.

I ttried this but got 2 issues:
1) 5.0 is not the normal height of the bar line. Would you know what it is?
2) i put a second override to get a normal bar after a half-bar size but
the second override seems to override the 1st override ???

\relative c' {
\override Staff.BarLine #'bar-size = #2.0
c4 c c c |
\override Staff.BarLine #'bar-size = #5.0
c c c c |
}

Hi, Marc,

halfBar = \once \override Staff . BarLine #'bar-size = #2

relative c' {
  c4 c c c \halfBar |
  c c c c |
}

should give you what you want. The \once says that this tweak should be applied - well, just once. Thus, there's no need to rewrite the whole thing just to get "normal size" bars; if you do not want to use the \once however, be sure to check out the \revert command.

An \override without \once affects all objects on the very time you call it, and lasts for the later ones. Thus, your code works as expected, but regardless of the order of | and \override, the /second/ call holds for the moment the BarLine gets drawn. The first affects everything from time 0 to just before the end of the first measure, but there is no bar line there.


HTH,
Alexander

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to