lilypond-user
[Top][All Lists]
Advanced

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

Re: Remove 3rd Staff in PianoStaff if empty


From: Malte Meyn
Subject: Re: Remove 3rd Staff in PianoStaff if empty
Date: Sat, 15 Aug 2015 16:04:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

Am 15.08.2015 um 15:49 schrieb Orm Finnendahl:
I tried all sorts of combinations of removing and consisting the
keep-alive-together engraver, tried to create an explicit staffgroup
for the main piano staves within the PianoStaff (this results in
loosing the centered instrument name and the curly braces), but it
didn't work.

If PianoStaff accepts StaffGroup the alignment works, so here is a solution:

\version "2.19.25"

\new PianoStaff \with {
  instrumentName = "Piano"
} <<
  \new Staff {
    R1 % music
  }
  \new StaffGroup <<
    \new Staff {
      R1 % music
    }
    \new Staff {
      R1 % music
    }
  >>
>>

\layout {
  \context {
    \Staff
    \RemoveEmptyStaves
  }
  \context {
    \StaffGroup
    \consists Keep_alive_together_engraver
    \remove System_start_delimiter_engraver
  }
  \context {
    \PianoStaff
    \accepts StaffGroup
    \remove Keep_alive_together_engraver
  }
}



reply via email to

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