lilypond-user
[Top][All Lists]
Advanced

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

Re: How to put bar lines between staves when bar line is "||" or "|."?


From: wjm
Subject: Re: How to put bar lines between staves when bar line is "||" or "|."?
Date: Wed, 30 May 2012 09:33:39 +1200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi Marcel,
If the following doesn't work then I must be misunderstanding what you are looking for.
:)
Regards
Bill
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\layout {
  \context { \Score
    \remove "Timing_translator"
    \remove "Default_bar_line_engraver"

    \consists "Span_bar_engraver"
      \override SpanBar #'stencil =
      #(lambda (grob)
        (if (string=? (ly:grob-property grob 'glyph-name) ":")
            (set! (ly:grob-property grob 'glyph-name) ""))
           (if (string=? (ly:grob-property grob 'glyph-name) "|")
            (set! (ly:grob-property grob 'glyph-name) ""))
        (ly:span-bar::print grob))

  }
  \context { \Staff
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
    \override TimeSignature #'style = #'mensural
    \override NoteHead #'style = #'baroque
    \override TupletNumber #'transparent = ##t
    \override TupletBracket #'transparent = ##t
  }
  indent=26\mm
}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
On 30/05/12 00:33, Marcel Korpel wrote:
On Tue, May 29, 2012 at 4:57 AM, wjm<address@hidden>  wrote:
Does it do what you wanted?

Thanks, Bill, but no, because the different bar line styles | and :
must not appear in all voices at the same time, i.e. I need different
bar lines in different voices.

That's also why I moved "Timing_translator" and
"Default_bar_line_engraver" from Score to Staff context.

Kind regards,
Marcel




reply via email to

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