%% Reported by 胡海鹏 - Hu Haipeng
%% http://lists.gnu.org/archive/html/lilypond-user/2011-02/msg00179.html
%%
%% [empty] Dynamics context prevents \RemoveEmptyStaves to work
%%
%% We should have a way to remove empty Dynamics contexts as well
%% and \RemoveEmptyStaves should remove PianoStaff if both staves and
%% Dynamics are empty.
%%
\version "2.13.48"
\score {
<<
\new PianoStaff <<
\new Staff {
R1*48
}
%% the Dynamics context prevents empty PianoStaff to disappear
\new Dynamics {
s1*48
}
\new Staff {
R1*48
}
>>
\new Staff {
\repeat unfold 48 c'1
}
>>
\layout {
\context {
\Staff
\RemoveEmptyStaves
}
}
}
Cheers,
Xavier
--
Xavier Scheuer <[email protected]>
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond