[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dynamics context prevents \RemoveEmptyStaves to work
From: |
Xavier Scheuer |
Subject: |
Dynamics context prevents \RemoveEmptyStaves to work |
Date: |
Wed, 9 Feb 2011 19:14:03 +0100 |
%% 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 <address@hidden>
- Dynamics context prevents \RemoveEmptyStaves to work,
Xavier Scheuer <=