lilypond-user
[Top][All Lists]
Advanced

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

Re: Piano staff notes across both staffs, another problem


From: Thomas Morley
Subject: Re: Piano staff notes across both staffs, another problem
Date: Fri, 9 Feb 2018 17:02:38 +0100

2018-02-09 16:16 GMT+01:00 Andrew Bernard <address@hidden>:
> Hi Robert,
>
> This perhaps. By no means unacceptable.
>
> ===
> \version "2.19.81"
>
> treble = {
>   \clef treble
>   \time 3/4
>   <<
>     {
>       \voiceTwo
>       f'4\rest \crossStaff { <e' a'>4  <e' aes'> } |
>     }
>     \new Voice
>     {
>     }
>   >>
> }
>
> bass = {
>   \clef bass
>
>   \time 3/4
>   <<
>     {
>       \voiceTwo
>       c2.
>     }
>     \new Voice
>     {
>       \voiceFour
>       a4\rest a4 b |
>     }
>     \new Voice
>     {
>       \voiceTwo
>       s4
>       \once \override NoteColumn.force-hshift = -1.9
>       \once \hide Stem
>       bes4
>       \once \override NoteColumn.force-hshift = -1.9
>       \once \hide Stem
>       c'
>     }
>   >>
>
> }
>
> \score {
>
>   \new PianoStaff
>   <<
>     \new Staff = "treble" \with {
>     }
>     { \treble }
>
>     \new Staff = "bass" \with {
>     }
>     { \bass }
>   >>
>
>   \layout {
>
>     \context {
>       \PianoStaff
>       \consists #Span_stem_engraver
>     }
>
>   }
> }
>
> ===


Hi Andrew,

why not:

treble = {
  \time 3/4
  \voiceTwo
  \crossStaff { r4 <e' a'>  <e' aes'> } |
}

bass = {
  \clef bass

  \time 3/4
  <<
    {
      \voiceTwo
      c2.
    }
    \new Voice
    {
      \voiceFour
      a4\rest <a bes>4 <b c'> |
    }
  >>
}

\score {

  \new PianoStaff
    <<
      \new Staff \treble

      \new Staff \bass
    >>

  \layout {
    \context {
      \PianoStaff
      \consists #Span_stem_engraver
    }
  }
}

Cheers,
  Harm



reply via email to

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