[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: start/stop staff
From:       Michael Werner <reznaeous () gmail ! com>
Date:       2023-11-24 12:48:22
Message-ID: CAOi1ec8bYnNC4JGT0neq6gsmeNrB+UR1wOFFLxqb=xxxVozkPQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi David,

On Thu, Nov 23, 2023 at 7:10 PM bobroff@centrum.is <bobroff@centrum.is>
wrote:

> I have a quartet piece with a recitative type section in one part.  The
> other parts play, essentially, punctuation.  The "solo" part is
> rhythmically complex enough that having it on the accompanying parts would
> make it far easier to play.  I could easily put the entire movement in each
> part as a StaffGroup but I would prefer a two-line staffGroup only for the
> sections where the solo part is not homophonic with the rest.  How would I
> go about starting/stopping such a thing?
>
> Put simply, I want to start the parts with a staffGroup which contains the
> individual part with the solo part above at a reduced size.  Then, when
> that section is done, reduce to the individual part.  Then reintroduce the
> solo part at a later section for the same reason.
>

I'd go about this with something like:

\version "2.25.10"

\paper {
  #(set-paper-size "a6")
}

solo = \relative c' {
  \repeat unfold 2 { a'4 b c d e d c b }
  R1*5
  a4 b c d e d c b
  R1*4  R1
}

individual = \relative c' {
  \repeat unfold 4 { c4 d e f g a b c b a g f e d c d }
}

\new StaffGroup
<<
  \new Staff \with {
    \RemoveAllEmptyStaves
    \magnifyStaff #2/3
  }
  \new Voice {
    \solo
  }

  \new Staff {
    \new Voice {
      \individual
    }
  }
>>

[image: document.png]

Might take a little trial and error to get the right combination of the R1
multiples, but should be fairly straightforward.

Also, if a section either starts or ends partway through a stave there will
be empty measures - \RemoveAllEmptyStaves goes from line break to line
break. This is shown in the 3rd line of this example.

As this is Lilypond, of course there are other ways to do this. Have a look
at
http://lilypond.org/doc/v2.25/Documentation/notation/ossia-staves
and
http://lilypond.org/doc/v2.25/Documentation/notation/hiding-staves
for some other examples.
-- 
Michael

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi David,</div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Thu, Nov 23, 2023 at 7:10 PM <a \
href="mailto:bobroff@centrum.is">bobroff@centrum.is</a> &lt;<a \
href="mailto:bobroff@centrum.is">bobroff@centrum.is</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a quartet piece \
with a recitative type section in one part.   The other parts play, essentially, \
punctuation.   The &quot;solo&quot; part is rhythmically complex enough that having \
it on the accompanying parts would make it far easier to play.   I could easily put \
the entire movement in each part as a StaffGroup but I would prefer a two-line \
staffGroup only for the sections where the solo part is not homophonic with the rest. \
How would I go about starting/stopping such a thing?<br> <br>
Put simply, I want to start the parts with a staffGroup which contains the individual \
part with the solo part above at a reduced size.   Then, when that section is done, \
reduce to the individual part.   Then reintroduce the solo part at a later section \
for the same reason.<br></blockquote><div><br></div><div>I&#39;d go about this with \
something like:</div><div><br></div>\version &quot;2.25.10&quot;<br><br>\paper {<br>  \
#(set-paper-size &quot;a6&quot;)<br>}<br><br>solo = \relative c&#39; {<br>   \repeat \
unfold 2 { a&#39;4 b c d e d c b }<br>   R1*5<br>   a4 b c d e d c b <br>   R1*4   \
R1<br>}<br><br>individual = \relative c&#39; {<br>   \repeat unfold 4 { c4 d e f g a \
b c b a g f e d c d }<br>}<br><br>\new StaffGroup<br>&lt;&lt;<br>   \new Staff \with \
{<br>      \RemoveAllEmptyStaves<br>      \magnifyStaff #2/3<br>   }<br>   \new Voice \
{<br>      \solo<br>   }<br><br>   \new Staff {<br>      \new Voice {<br>         \
\individual<br>      }<br>   }<br>&gt;&gt;</div><div \
class="gmail_quote"><br></div><div class="gmail_quote"><img src="cid:ii_lpcldorz0" \
alt="document.png" width="247" height="349" style="margin-right: \
0px;"><br><div><br></div><div>Might take a little trial and error to get the right \
combination of the R1 multiples, but should be fairly \
straightforward.</div><div><br></div><div>Also, if a section either starts or ends \
partway through a stave there will be empty measures - \RemoveAllEmptyStaves goes \
from line break to line break. This is shown in the 3rd line of this \
example.</div><div><br></div><div>As this is Lilypond, of course there are other ways \
to do this. Have a look at</div><div><a \
href="http://lilypond.org/doc/v2.25/Documentation/notation/ossia-staves">http://lilypo \
nd.org/doc/v2.25/Documentation/notation/ossia-staves</a></div><div>and</div><div><a \
href="http://lilypond.org/doc/v2.25/Documentation/notation/hiding-staves">http://lilypond.org/doc/v2.25/Documentation/notation/hiding-staves</a></div><div>for \
some other examples.</div></div><span class="gmail_signature_prefix">-- \
</span><br><div dir="ltr" class="gmail_signature"><div \
dir="ltr"><div>Michael<br><br></div></div></div></div>


["document.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic