Hello Caio, Does this help you, from a previous post?
\version "2.19.25" %{ \RemoveEmptyStaves does not work primarily because \PianoStaff has the Keep_alive_together_engraver. You should remove that one (or not use \PianoStaff) and then invoke only the second Staff as \new Staff \with { \RemoveEmptyStaves } { ... } I have a harp score where there are a lot of lines that require only the upper staff. How can I suppress the lower staff in lines where it is empty If you don't want to retain the upper Staff with rests only when the lower Staff has notes, things are a bit more tricky. Basically, you'll arrange to have your whole PianoStaff removed on demand, give it a remove-layer of #0 but put _another_ copy of the first Staff (better though a rest-only variant of it) in parallel with the PianoStaff, giving it a remove-layer of #1. That way it will only survive into the final score when both staves in the PianoStaff will die. %} %\new PianoStaff << \new Staff \relative c' { \repeat unfold 5 { c4 e g c } \repeat unfold 12 { c2 a } \repeat unfold 20 { R1 } \repeat unfold 10 { c2 a } \repeat unfold 8 { c,4 e g c } } \new Staff \with { \RemoveEmptyStaves } \relative c { \clef bass \repeat unfold 5 { c4 e g c } \repeat unfold 42 s1 \repeat unfold 8 { c,4 e g c } } >> \layout { \context { % \Staff \RemoveEmptyStaves } } > Le 7 juil. 2016 à 17:42, Urs Liska <u...@openlilylib.org> a écrit : > > > > Am 7. Juli 2016 17:32:47 MESZ, schrieb Caio Giovaneti de Barros > <caio.bar...@gmail.com>: >> Can I remove a staff in a single section? Like \removeEmptyStaves but >> not for the whole score. In my case it is just for the last system. >> >> >> Sorry if this topic was already discussed, I searched the manuals and >> archive but I'm in a bit of a hurry now to be honest. > > \stopStaff ? > >> >> >> _______________________________________________ >> lilypond-user mailing list >> lilypond-user@gnu.org >> https://lists.gnu.org/mailman/listinfo/lilypond-user > > -- > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user