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

List:       lilypond-user
Subject:    Re: \startStaff after clef change in other staff
From:       Pierre Perol-Schneider <pierre.schneider.paris () gmail ! com>
Date:       2019-07-31 6:42:41
Message-ID: CAPHOTuVwMaKb0O9pa3+uWdLt5meAE=kCJZ8_LBRC-_oLj9JU5Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Mason,
I couldn't find the correct incantation to modify the StaffSymbol and/or
the BreakAlignment properties...
So here's a hacky way, HTH:

\version "2.21.0"

\score {
  <<
    \new Staff \relative c' {
      c4 c c c |
      \stopStaff
      s1
      \startStaff
      c4 c c c |
    }
    \new Staff \relative c' {
      c4 c c c |
      c4 c c
      \once\textLengthOn
      c
      -\tweak extra-offset #'(1.9 . -1.5) % <= to be set manually
      ^\markup\with-dimensions #'(0 . 4) #'(0 . 0)\musicglyph
#"clefs.F_change" |
      \once\override Staff.Clef.stencil = ##f
      \clef "bass" c4 c c c |
    }
  >>
}

Cheers,
Pierre

Le mer. 31 juil. 2019 à 00:53, <mason@masonhock.com> a écrit :

> When a staff that has previously been stopped with \stopStaff is
> restarted with \startStaff on the first beat of a measure, and this
> coincides with a clef change in another staff, the first staff begins at
> the clef instead of the barline.
>
> %%% begin MWE %%%
>
> \version "2.21.0"
>
> \score {
>   <<
>     \new Staff \relative c' {
>       c4 c c c |
>       \stopStaff
>       s1 |
>       \startStaff
>       c4 c c c |
>     }
>     \new Staff \relative c' {
>       c4 c c c |
>       c4 c c c |
>       \clef "bass" c4 c c c |
>     }
>   >>
> }
>
> %%% end MWE %%%
>
> This might be desirable in general, but in the context of my score
> (not necessarily in this MWE) it looks odd. Is there a way to override
> this behavior so that the staff begins on the barline?
>
> Thanks,
>
> Mason
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi Mason,</div><div>I couldn&#39;t find the correct incantation \
to modify the StaffSymbol and/or the BreakAlignment properties...</div><div>So \
here&#39;s a hacky way, HTH:</div><div><br></div><div>\version \
&quot;2.21.0&quot;<br><br>\score {<br>   &lt;&lt;<br>      \new Staff \relative \
c&#39; {<br>         c4 c c c |<br>         \stopStaff<br>         s1<br>         \
\startStaff<br>         c4 c c c |<br>      }<br>      \new Staff \relative c&#39; \
{<br>         c4 c c c |<br>         c4 c c <br>         \once\textLengthOn<br>       \
c<br>         -\tweak extra-offset #&#39;(1.9 . -1.5) % &lt;= to be set manually<br>  \
^\markup\with-dimensions #&#39;(0 . 4) #&#39;(0 . 0)\musicglyph \
#&quot;clefs.F_change&quot; |<br>         \once\override Staff.Clef.stencil = ##f<br> \
\clef &quot;bass&quot; c4 c c c |<br>      }<br>   &gt;&gt;<br>} \
<br></div><div><br></div><div>Cheers,</div><div>Pierre<br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">Le  mer. 31 juil. 2019 Ã   \
00:53, &lt;<a href="mailto:mason@masonhock.com">mason@masonhock.com</a>&gt; a écrit  \
:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">When a staff that has \
previously been stopped with \stopStaff is<br> restarted with \startStaff on the \
first beat of a measure, and this<br> coincides with a clef change in another staff, \
the first staff begins at<br> the clef instead of the barline.<br>
<br>
%%% begin MWE %%%<br>
<br>
\version &quot;2.21.0&quot;<br>
<br>
\score {<br>
   &lt;&lt;<br>
      \new Staff \relative c&#39; {<br>
         c4 c c c |<br>
         \stopStaff<br>
         s1 |<br>
         \startStaff<br>
         c4 c c c |<br>
      }<br>
      \new Staff \relative c&#39; {<br>
         c4 c c c |<br>
         c4 c c c |<br>
         \clef &quot;bass&quot; c4 c c c |<br>
      }<br>
   &gt;&gt;<br>
}<br>
<br>
%%% end MWE %%%<br>
<br>
This might be desirable in general, but in the context of my score<br>
(not necessarily in this MWE) it looks odd. Is there a way to override<br>
this behavior so that the staff begins on the barline?<br>
<br>
Thanks,<br>
<br>
Mason<br>
_______________________________________________<br>
lilypond-user mailing list<br>
<a href="mailto:lilypond-user@gnu.org" target="_blank">lilypond-user@gnu.org</a><br>
<a href="https://lists.gnu.org/mailman/listinfo/lilypond-user" rel="noreferrer" \
target="_blank">https://lists.gnu.org/mailman/listinfo/lilypond-user</a><br> \
</blockquote></div>


[Attachment #6 (text/plain)]

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


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

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