lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hiding only one empty staff


From: Mats Bengtsson
Subject: Re: hiding only one empty staff
Date: Thu, 10 May 2007 11:55:08 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.0.5)

See also http://lists.gnu.org/archive/html/lilypond-user/2007-04/msg00037.html

 /Mats

Quoting Michael Lauer <address@hidden>:

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




_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user








reply via email to

[Prev in Thread] Current Thread [Next in Thread]