lilypond-user
[Top][All Lists]
Advanced

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

Re: Customize \RemoveEmptyStaves


From: Helge Kruse
Subject: Re: Customize \RemoveEmptyStaves
Date: Tue, 17 Jul 2018 21:30:15 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Am 17.07.2018 um 19:09 schrieb Marcos Press:
> Actually I'm not certain of which method to use. Perhaps it should be other
> way.
> The attached image is what I'm transcribing.
> 
> It's for a double hand/staff instrument that lots of times use only one. Or
> both doing the same so we just write one hand.
> 
> The result is reduction of pages and unnecessary eye data.
> 
> How would you resolve these?

This looks like an example for \RemoveEmptyStaves. You could do
something like this:

\version "2.18.2"

cello = \relative c'' {
  \time 3/8
  \repeat unfold 10 { R4. }
  \repeat unfold 37 { c8 d e }
}

celloII = \relative c {
  \time 3/8
  \repeat unfold 40 { R4. }
  c c c c c c c
}

\score {
  <<
    \new StaffGroup <<
      \new Staff { \clef treble \cello }
      \new Staff { \clef bass \celloII  }
    >>
  >>
  \layout {
    \context {
      \Staff \RemoveEmptyStaves
    }
  }
}

Of course, this shows only the automatic disappearance of empty staff
lines but not your score.

Regards, Helge



reply via email to

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