lilypond-user
[Top][All Lists]
Advanced

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

Re: Ties between voices?


From: James Harkins
Subject: Re: Ties between voices?
Date: Fri, 06 Oct 2017 11:36:04 +0800
User-agent: Zoho Mail

> Probably: 
>  
> \new Score { 
>   \new Staff { 
>     \numericTimeSignature \time 2/4  % barline, so E must be tied 
>     << 
>     \new Voice = "xy" \relative c' { 
>       \set tieWaitForNote = ##t 
>       <e g>2~ 
>     } 
>     \context Voice = "xy" \relative c' { 
>       s4 \voiceTwo f4 ~ <e f>2 
>     } 
>     \new Voice { r4 s4 a'8 g'4. } 
>     >> 
>     \unset tieWaitForNote 
>   } 
> } 

Ah, that's a lovely idea -- but I had oversimplified, and this doesn't quite 
scale up.

\version "2.18.2"
\language "english"

\new Score {
  \new Staff {
    \numericTimeSignature
    <<
      \new Voice = "a" \relative c' {
        \voiceOne
        c16 g' ~ <e g>8 ~ q2. ~
        \set tieWaitForNote = ##t
        q2 ~
      }
      \context Voice = "a" \relative c' {
        s4 s8 \voiceTwo f
        \override Beam.grow-direction = #RIGHT
        f16 [ %{ \override NoteHead.transparent = ##t %} f f f  f f f f ]
        \override Beam.grow-direction = #LEFT
        f [ f f %{ \revert NoteHead.transparent %} f ] ~ f4 ~ <e f>2
      }
      \new Voice = "b" \relative c' {
        \voiceTwo r4 r8 s8 s2 s2 \voiceOne a'8 g4.
      }
    >>
    \unset tieWaitForNote
  }
}

If you uncomment the transparent note heads, it's a right bloody mess.

I might have to rethink it. Maybe two staves are the only way.

hjh




reply via email to

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