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: Andrew Bernard
Subject: Re: print bass staff not always
Date: Mon, 21 Jan 2019 21:23:19 +1100

Hi Gianmaria,

I know you can do this with GrandStaff and the score context settings shown here.

Not sure how to do it with PianoStaff.

Andrew

%====
\version "2.19.82"
rh = { \clef treble \repeat unfold 3 {a1 b1 c'1 d'1 \break}}
lh = { \clef bass s1*4 a1 1 1 1}
\score
{
  \new GrandStaff <<
    \new Staff \rh
    \new Staff \lh
  >>
  \layout {

    \context {
      \Score
      \RemoveEmptyStaves
      \override VerticalAxisGroup.remove-first = ##t
    }
  }
}

%===


On Mon, 21 Jan 2019 at 21:13, Gianmaria Lari <address@hidden> wrote:
The following code prints three "lines" of music. The first and second lines are two staff system (treble and bass) and the third line just one staff (treble). 

\version "2.19.82"
rh = { \clef treble \repeat unfold 3 {a1 b1 c'1 d'1 \break}}
lh = { \clef bass s1*4 a1 1 11}
\score 
  \new PianoStaff <<
    \new Staff \rh
    \new Staff \lh
  >>
  \layout {}
}

I would like to avoid printing the first bass line because it's empty (s1*4). How can I do it?
Sorry for my "imprecise" english.
g.

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

reply via email to

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