[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Manual volta placement and invisible barline kills previous barline
From: |
Thomas Morley |
Subject: |
Re: Manual volta placement and invisible barline kills previous barline |
Date: |
Mon, 21 May 2012 23:11:30 +0200 |
2012/5/21 Philip Thomas <address@hidden>:
>>> Aha, I thought: try adding an invisible barline at the beginning of
>>> bar 5. That works fine to position the volta bracket correctly, but it
>>> also makes the barline at the end of bar 4 invisible also, even when I
>>> add a manual single barline at the end of bar 4. (See Example B
>>> below.)
>
>>
> <URL:http://lilypond.org/doc/v2.15/Documentation/notation/bars#bar-numbers>
>> does explain break-visibility.
>
>> David Kastrup
>
> Thanks, David.
>
> I hope I'm not missing the point. I have some understanding, I think, about
> the visibility of _bar numbers_ (for example, I realize that an invisible
> barline at the beginning of a piece will make the first bar number visible,
> if the break-visibility of bar numbers is set correctly). I also understand
> that overrides are available to make bar numbers visible or invisible
> depending on where they are located in relation to line breaks (that is, at
> the end, middle or beginning of the line).
>
> My problem, however (apart from that I first encountered, namely, the bad
> placement of the volta bracklet colliding with the key signature), was the
> disappearance of the _barline_ at the end of the preceding bar when I added
> an invisible barline at the beginning of the next line. I apologize if it
> should be readily apparent how what is said in the documentation you cite
> about visibility of bar numbers would be applicable to visibility of
> barlines in the circumstances I mentioned, but it wasn't apparent to me. For
> example, I can't find anything that tells me how adding an explicit
> invisible barline affects break-visibility properties of any explicit
> barline in the preceding bar or line.
>
> While I'm certainly not sure that I've properly understood the role of
> break-visibility in this, a quick check suggests to me that an invisible
> barline \bar "" when placed at the beginning of _any_ bar appears to make
> the previous barline invisible even if it has been spelt out as \bar "|".
Hi Philp,
the boiled down problem:
You are using two BarLine-settings: \bar "|" and \bar "" consecutively.
So the second overrides the first.
This is the common behaviour.
(The \break and \startVoltaOne are irrelevant here.)
\bar "" returns no visible BarLine at line-end, line-begin and the
middle of the line.
>
> At any rate, my problem with the colliding volta bracket remains.
Perhaps you may want to try the code below, in which I used the
break-visibility-property to deal with a TimeSignature.
It's _very_ hackish and dirty. :)
\version "2.14.2"
% DEFINE volta-related variables for use in score:
startVoltaOne = \set Score.repeatCommands = #'((volta "1."))
startVoltaTwo = \set Score.repeatCommands = #'((volta #f)(volta "2.")
end-repeat)
endVolta = \set Score.repeatCommands = #'((volta #f))
pointStencilTimeSignatureAtLineBegin = {
\once \override Score.TimeSignature #'stencil = #point-stencil
\once \override Score.TimeSignature #'break-visibility = #'#(#f #t #t)
\break
\time 4/4
}
\score { \relative c' {
\clef "treble"
\key g \major
\numericTimeSignature \time 4/4
c4 c4 c4 c4 | c4 c4 c4 c4 | c4 c4 c4 c4 | %1-3
c4 c4 c4 c4 | %4
\pointStencilTimeSignatureAtLineBegin
\startVoltaOne c4 c4 c4 c4 \endVolta | %5
\startVoltaTwo c4 c4 c4 c4 \endVolta | %6
c4 c4 c4 c4 | c4 c4 c4 c4 \bar "|." %7-8
} }
HTH,
Harm
P.S. Please note that I changed your volta-related variables.