2012/9/16 Peter O'Doherty <address@hidden>:
Hi list,
Is it possible to force an extra bar line in the form
\bar ":"
when inserted into a multi-stave score to only apply to one staff instead of
the default where the dots are added to all staves?
Many thanks,
Peter
Hi Peter,
two possible methods:
(1) overriding BarLine glyph-name:
%%%%%% one %%%%%%%
musA = \relative c'' {
c1
\once \override Staff.BarLine #'glyph-name = #":"
d
\break
e f
}
musB = \relative c' {
c1 d
e
\once \override Score.SpanBar #'glyph-name = #"|"
\once \override Staff.BarLine #'glyph-name = #":"
f
}
\score {
\new StaffGroup <<
\new Staff
\musA
\new Staff
\musB
>>
}
%%%%%%% end of one %%%%%%
(2) moving "Timing_translator" and "Default_bar_line_engraver" from
Score- to Staff-level:
%%%%%%%% two %%%%%
musI = \relative c'' {
c1
\bar ":"
d
\break
e f
\break
g a
\bar ":|"
}
musII = \relative c' {
c1 d
e
\bar ":"
f
g a
\once \override Score.SpanBar #'glyph-name = #"|." \bar ":|"
}
\score {
\new StaffGroup <<
\new Staff
\musI
\new Staff
\musII
>>
\layout {
\context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
\override SpanBar #'glyph-name = #"|"
}
\context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
}
}
}
%%%%%%% end of two %%%%%%
Sometimes you have to
\override Score.SpanBar #'glyph-name = ...
in both cases.
See also:
http://lilypond.org/doc/v2.17/Documentation/internals-big-page#default_005fbar_005fline_005fengraver
http://lsr.dsi.unimi.it/LSR/Item?id=344
HTH,
Harm