Hiding staves with rests only (for some/all voices): Difference between revisions

Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
If you have some voices where you still want to display all (even empty) staves, you need to set the <code>remove-empty</code> property of the <code>VerticalAxisGroup </code>to <code>#t</code> for that one staff only. You can do this in the <code>\with</code> section of the staff (in this example, the alto staff will never erase empty lines, while the soprano staff will).
If you have some voices where you still want to display all (even empty) staves, you need to set the <code>remove-empty</code> property of the <code>VerticalAxisGroup </code>to <code>#t</code> for that one staff only. You can do this in the <code>\with</code> section of the staff (in this example, the alto staff will never erase empty lines, while the soprano staff will).


<lilypond version="2.24.0" full>
<lilypond version="2.24" full>
%% http://lsr.di.unimi.it/LSR/Item?id=307
%% http://lsr.di.unimi.it/LSR/Item?id=307


Line 72: Line 72:
[[Category:Preparing parts]]
[[Category:Preparing parts]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]