lilypond-auto
[Top][All Lists]
Advanced

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

Re: [Lilypond-auto] Issue 2990 in lilypond: \RemoveEmptyStaves in StaffG


From: lilypond
Subject: Re: [Lilypond-auto] Issue 2990 in lilypond: \RemoveEmptyStaves in StaffGroup context crashes
Date: Sat, 22 Dec 2012 20:46:29 +0000


Comment #23 on issue 2990 by address@hidden: \RemoveEmptyStaves in StaffGroup context crashes
http://code.google.com/p/lilypond/issues/detail?id=2990

Workaround: use the 'remove-empty property instead of the pre-packaged \RemoveEmptyStaves, and ask all staves to listen to the 'remove-empty property:

\new StaffGroup \with { \override VerticalAxisGroup #'remove-empty = ##t } <<
  \new Staff { b1 \break R1 \break b1}
  \new Staff \with { \override VerticalAxisGroup #'remove-empty = ##f } {
    b1 \break b1 \break R1 } >>

%% This makes all types of staff-like lines of music honor the remove-empty setting
\layout {
  \context { \Staff
    \remove "Axis_group_engraver" \consists "Hara_kiri_engraver" }
  \context { \Dynamics
    \remove "Axis_group_engraver" \consists "Hara_kiri_engraver" }
  \context { \NoteNames
    \remove "Axis_group_engraver" \consists "Hara_kiri_engraver" }
  \context { \RhythmicStaff
    \remove "Axis_group_engraver" \consists "Hara_kiri_engraver" }
}

(The patches offered only stop the crash, you still need the workaround to make remove-empty take effect on a group of staves.)




reply via email to

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