lilypond-user
[Top][All Lists]
Advanced

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

Re: RemoveEmptyStaffContext und Bar_number_engraver


From: ornello
Subject: Re: RemoveEmptyStaffContext und Bar_number_engraver
Date: Wed, 18 Jan 2012 05:12:54 -0800 (PST)

I have found the following workaround:


\version "2.12.2"

\layout {
  \context {
  \Score
    \remove "Bar_number_engraver"
  }
  %  \context {
  %    \RemoveEmptyStaffContext
  %  }
}

\relative c' <<
  \new Staff 
    \with {
    \consists "Bar_number_engraver"
    \override BarNumber #'break-visibility = #all-visible
  } 
  {
    e4 f g a ^ \markup { "Text above bar number" } e4 f g a \break
    R1 \break
    a4 b c2
  }
  \new Staff 
    \with {
    \remove "Axis_group_engraver"
    \consists "Hara_kiri_engraver"
    \override Beam #'auto-knee-gap = #'()
    \override VerticalAxisGroup #'remove-empty = ##t
  }
  {
    c,4 d e f c,4 d e f \break
    b1 \break
    R1
  }
>>


It removes \RemoveEmptyStaffContext from the layout and applies the
RemoveEmptyStaffContext settings defined in engraver-init.ly to all but the
first staff.

This is not exactly what I wanted because the first staff is never removed
but in this way bar numbers are always displayed. If anyone has a better
solution... comments welcome!

-- 
View this message in context: 
http://old.nabble.com/RemoveEmptyStaffContext-und-Bar_number_engraver-tp33136191p33161022.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.




reply via email to

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