The following lines will define a separate context type
"RemoveEmptyStaff" that
can be used together with ordinary Staff contexts to do what you want:
\layout{
% Define a separate context type corresponding to the
% ordinary \RemoveEmptyStaffContext. The definition is
% copied from ly/engraver-init.ly:
\context{
\Staff
\name "RemoveEmptyStaff"
\alias "Staff"
\remove "Axis_group_engraver"
\consists "Hara_kiri_engraver"
\override Beam #'auto-knee-gap = #'()
\override VerticalAxisGroup #'remove-empty = ##t
}
\context{
\Score
\accepts RemoveEmptyStaff
}
}
Just use \new RemoveEmptyStaff for the staves you want to be removed
and \new Staff for the those that should stay.
/Mats
yota moteuchi wrote:
Dear lilypond List
I have something like
\version "2.11.20"
\score {
\new StaffGroup <<
\new Staff {
\voiceA
}
\new Staff {
\voiceB
}
\new Staff {
\voiceC
}
>>
\layout { \context { \removeEmptyStaffContext } }
}
\paper { }
It works nice... but I would like to remove the empty staffes (staves
?) for the voices A & B (when empty) but never for the voice C.
Which mean that : even if C is empty (and A or B have some content) :
don't remove it
How could I do ?
I already had a look at the archives without finding a nice trick
Yota
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user