lilypond-user
[Top][All Lists]
Advanced

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

Re: crossStaff with tieWaitForNote


From: Thomas Morley
Subject: Re: crossStaff with tieWaitForNote
Date: Thu, 13 Jun 2013 23:53:01 +0200

2013/6/13 Kieren MacMillan <address@hidden>:
> Hello,
>
> Any help making the snippet below work "as expected" (i.e., the ties wait for 
> the chord, which is cross-staff) would be appreciated!
>
> Thanks,
> Kieren.
> _______________________
>
> \\version "2.17"
> \language "english"
>
> \layout {
>   \context {
>     \PianoStaff
>     \consists #Span_stem_engraver
>     tieWaitForNote = ##t
>   }
> }
>
> upper_notes = \relative d'' {
>   <<
>     { \voiceOne r8 <d e>8[-. a'-. e']-. a2-. }
>     \new Voice { \voiceTwo s8 \crossStaff { <b,,, c e fs b>2.. } }
>   >>
> }
>
> lower_notes = \relative d, {
>   \clef bass
>   \tuplet 7/4 { \stemUp d32[ ~ a' ~ fs' ~ \change Staff = "piano_upper" 
> \voiceTwo <b c> ~ e ~ fs ~ b] ~ }
>       \change Staff = "piano_lower" \oneVoice <d,,, a' fs'>2..
> }
>
> \score {
>   \new PianoStaff <<
>     \new Staff = "piano_upper" \upper_notes
>     \new Staff = "piano_lower" \lower_notes
>   >>
> }
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Kieran,

I tried a simplified example. Though, I can make it work either for
the Ties _or_ for the Beam.
Seems that the notes have to be in the _same_ Voice for the Beam.
But for the Ties with a cross-staff chord in _different_ Voices.

I've no idea how to solve that quandary.

FWIW, the code:

\version "2.17.20"

upper_notes = \relative c' {
         s4 e4
}

lower_notes = \relative c {
         \clef bass
         c8~
         \change Staff = "piano_upper"
         % The next line warrants the Tie, but no Beam.
         % Commenting this returns the Beam, but no all Ties
         %\context Voice = "xy"
         e'~
         \change Staff = "piano_lower"
         \crossStaff c,4
}

\score {        
  \new PianoStaff <<
    \new Staff = "piano_upper" \new Voice = "xy" { \upper_notes }
    \new Staff = "piano_lower" \lower_notes
  >>
  \layout {
    \context {
      \PianoStaff
      \consists #Span_stem_engraver
      tieWaitForNote = ##t
    }
  }
}


Sorry for being of not more help,
  Harm



reply via email to

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