lilypond-user
[Top][All Lists]
Advanced

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

Re: print bass staff not always


From: Gianmaria Lari
Subject: Re: print bass staff not always
Date: Mon, 21 Jan 2019 22:14:25 +0100



On Mon, 21 Jan 2019 at 14:57, Gianmaria Lari <address@hidden> wrote:


On Mon, 21 Jan 2019 at 13:02, Valentin Villenave <address@hidden> wrote:
On 1/21/19, Andrew Bernard <address@hidden> wrote:
> Not sure how to do it with PianoStaff.

That’s because of the Keep_alive_together engraver. Your layout block
should look like:

\layout {
    \context {
      \PianoStaff
      \RemoveEmptyStaves
      \remove "Keep_alive_together_engraver"
      \override VerticalAxisGroup.remove-first = ##t
    }
}

That being said, I have never seen a piano part where only one of the
hands is printed when the other doesn’t play. (Vibraphone and marimba
parts, maybe.) That’s why we added this feature in the first place.
[...]

Valentin, your solution works well if the staff is made of rests (r) or skips (s). Is it possible to print the staff if it contains rests but avoid to print it if it contains skip?

Thank you, g.

reply via email to

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