--- /dev/null
+\version "2.11.32"
+\header {
+ texidoc = "Span bars can be turned on/off on a staff-by-staff basis."
+}
+
+\layout {
+ \context {
+ \Staff
+ }
+ ragged-right =##t
+}
+
+\relative c' \new StaffGroup <<
+ \new Staff {
+ c1
+ \once \override Staff.BarLine #'allow-span-bar = ##f
+ c1 c1 c1
+ \bar "|."
+ }
+ \new Staff {
+ a1 a1
+ \once \override Staff.BarLine #'allow-span-bar = ##f
+ a1 a1
+ }
+ \new Staff {
+ f1 f1 f1 f1
+ }
+>>
+
+
+
+%% Local variables:
+%% LilyPond-indent-level:2
+%% End:
+
/* properties */
+ "allow-span-bar "
"gap "
"kern "
"thin-kern "
/* compose span_bar_mol */
vector<Interval> extents;
+ vector<bool> make_span_bar;
Grob *model_bar = 0;
for (vsize i = elements.size (); i--;)
{
continue;
extents.push_back (ext);
+ make_span_bar.push_back (to_boolean (bar->get_property ("allow-span-bar")));
model_bar = bar;
}
Interval l (prev_extent [UP],
ext[DOWN]);
- if (l.is_empty ())
+ if (l.is_empty () || !make_span_bar[i])
{
/* There is overlap between the bar lines. Do nothing. */
}
@code{0}: around center of width, @code{1}: right side.")
(allow-loose-spacing ,boolean? "If set, column can be detached
from main spacing.")
+ (allow-span-bar ,boolean? "If false, no inter-staff barline will
+be created below this barline.")
(alteration ,number? "Alteration numbers for accidental.")
(alteration-alist ,list? "List of @code{(@var{pitch}
. @var{accidental})} pairs for key signature.")
(stencil . ,ly:bar-line::print)
(glyph-name . ,bar-line::calc-glyph-name)
(bar-size . ,ly:bar-line::calc-bar-size)
+ (allow-span-bar . #t)
(space-alist . (
(time-signature . (extra-space . 0.75))