Thanks very much, Xavier.

After the passage how can I revert the stem length, flag, and direction
settings to their default values?


     % extend the stems to reach the other staff
     \override Stem #'length = #15
     % do not print extra flags
     \override Stem #'flag-style = #'no-flag
     % stems should be up
      \stemUp

many thanks,
Sepand




On Fri, May 27, 2011 at 2:56 PM, Xavier Scheuer <x.sche...@gmail.com> wrote:

> On 27 May 2011 23:38, Sepand Shahab <sepandsha...@alum.calarts.edu> wrote:
> >
> > Dear list members,
> >
> > How can I rewrite the following simplified example so that each quarter
> note
> > unit has just one beam across the top of the upper staff and the
> four-note
> > chords share cross-staff stems?
>
> I would use something like this.
> Please note that explicit  Voice  creation is needed due to the fact
> that we use a  \change Staff  at the very beginning of "upper".
>
> \version "2.12.3"
>
> upper = \relative c' {
>  \clef treble
>   \change Staff = "Staff_pfLower"
>  <c,, c'>8
>  \change Staff = "Staff_pfUpper"
>   <d'' e>16 <d e>
>  <d e> <d e> <d e> <d e>
> }
>
> lower = \relative c, {
>  \clef bass
>   % stems may overlap the other staff
>  \override Stem #'cross-staff = ##t
>  % extend the stems to reach the other staff
>  \override Stem #'length = #12
>  % do not print extra flags
>  \override Stem #'flag-style = #'no-flag
>  % stems should be up
>  \stemUp
>  % prevent autobeaming
>  \autoBeamOff
>  s8  <a'' b>16 <a b>
>   <a b> <a b> <a b> <a b>
> }
>
>
> \score {
>  \new PianoStaff = "PianoStaff_pf" <<
>    \new Staff = "Staff_pfUpper" <<
>       \new Voice = "Voice_pfUpper" {
>         \upper
>      }
>    >>
>    \new Staff = "Staff_pfLower" <<
>       \new Voice = "Voice_pfLower" {
>        \lower
>      }
>    >>
>  >>
> }
>
>
> Cheers,
> Xavier
>
> --
> Xavier Scheuer <x.sche...@gmail.com>
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to