[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RhythmicStaff doesn't get hidden with RemoveEmptyStaffContext
From: |
Mats Bengtsson |
Subject: |
Re: RhythmicStaff doesn't get hidden with RemoveEmptyStaffContext |
Date: |
Thu, 17 Mar 2005 10:25:16 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
Pedro Kröger wrote:
The subject says all. in this example the 1st staff should be hidden in
the second system like the 3rd staff. am I missing something?
Yes, that RemoveEmptyStaffContext is a replacement only for the ordinary
Staff context, not for any other kind of contexts. If you use a recent
2.5.xx version, then there is a predefined
\RemoveEmptyRhythmicStaffContext in earlier LilyPond versions you have
to define it yourself:
RemoveEmptyRhythmicStaffContext= \context {
\RhythmicStaff
\remove "Axis_group_engraver"
\consists "Hara_kiri_engraver"
}
/Mats
\book {
\score {
<<
\new Staff {
\context RhythmicStaff {
\time 3/4
\repeat unfold 9 {\repeat unfold 3 {c4}}
R2.*9
\repeat unfold 9 {\repeat unfold 3 {c4}}
}
}
\new Staff {
\clef percussion
\repeat unfold 27 {\repeat unfold 3 {c4}}
}
\new Staff {
\clef percussion
\repeat unfold 9 {\repeat unfold 3 {d4}}
R2.*9
\repeat unfold 9 {\repeat unfold 3 {d4}}
}
>>
\layout {
\context {
\RemoveEmptyStaffContext
}
}
}
}
_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel
--
=============================================
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: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================