lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \bar ":"


From: Peter O'Doherty
Subject: Re: \bar ":"
Date: Mon, 17 Sep 2012 09:31:50 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

Thanks a lot. I have a related question which was raised by one of your suggestions but I've put it in a new message.
Regards,
Peter


On 09/17/2012 01:16 AM, Thomas Morley wrote:
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



--
//=============================
-> Peter O'Doherty
-> http://www.peterodoherty.net
-> address@hidden
-> https://joindiaspora.com/people/70716
//=============================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]