lilypond-user
[Top][All Lists]
Advanced

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

Re: Ties between voices?


From: Thomas Morley
Subject: Re: Ties between voices?
Date: Thu, 5 Oct 2017 20:50:46 +0200

2017-10-05 10:56 GMT+02:00 James Harkins <address@hidden>:
> Hi, been away for awhile.
>
> I'm now writing for khaen, a Thai mouth organ. Fascinating instrument. 
> Notation is usually single-staff and heavily multi-voiced.
>
> One nut I never cracked in LilyPond: how to tie a note from one Voice to 
> another, e.g.
>
> \new Score {
>   \new Staff <<
>     \numericTimeSignature \time 2/4  % barline, so E must be tied
>     \new Voice \relative c' {
>       \voiceOne <e g>2 a8 g4.
>     }
>     \new Voice \relative c' {
>       \voiceTwo r4 f4 ~ <e f>2
>     }
>   >>
> }
>
> I need a tie from the e in <e g>2 (voice 1) to the e in <e f>2 (voice 2).
>
> How to restructure this to make it possible?
>
> Thanks.
>
> hjh



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
  }
}

Cheers,
  Harm



reply via email to

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