[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hiding only one empty staff
From: |
Michael Lauer |
Subject: |
Re: hiding only one empty staff |
Date: |
Tue, 8 May 2007 13:57:10 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Zoltán Selyem <sese <at> elte.hu> writes:
>
>
> Hi,
>
> I'd like to hide staff lines that only have rests,
> but I'd like to do this for only one staff,
> not all of them. Can LilyPond do that?
>
> Thanks,
>
> Zoltán
>
Create the staff that can be hidden like this (from the definition of
RemoveEmptyStaffContext):
\new Staff \with
{
\remove "Axis_group_engraver"
\consists "Hara_kiri_engraver"
\override Beam #'auto-knee-gap = #'()
\override VerticalAxisGroup #'remove-empty = ##t
}
{
%music...
}
If you want a particular staff to be hidden in some sections and not in others,
you can trick it into displaying with a transparent (non-whole-measure) rest:
<< { R1 } { \once \override Rest #'transparent = ##t r1 } >>
[Note: this is all in 2.10.23]
Michael