lilypond-user
[Top][All Lists]
Advanced

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

Re: Tie multiple voice music contained in variable


From: Aaron Hill
Subject: Re: Tie multiple voice music contained in variable
Date: Wed, 13 Nov 2019 02:53:11 -0800
User-agent: Roundcube Webmail/1.3.8

On 2019-11-13 2:37 am, Aaron Hill wrote:
On 2019-11-13 2:16 am, Gianmaria Lari wrote:
Probably it doesn't exist a simple solution and the best would to keep
the last measure outside the variable.

Embedding the tie within the variable seems to work:

%%%%
\version "2.19.83"

multipleVoiceWithUnterminatedTie = \fixed c' {
  << { g4 a~ } \\ { e2 } >>
}
multipleVoiceFollowingPhraseI = \fixed c' {
  << { a2 } \\ { d4 f } >>
}
multipleVoiceFollowingPhraseII = \fixed c' {
  << { a4 b } \\ { f2 } >>
}

{ \multipleVoiceWithUnterminatedTie
  \multipleVoiceFollowingPhraseI
  \multipleVoiceWithUnterminatedTie
  \multipleVoiceFollowingPhraseII }
%%%%

(Fixed typo in quoted code above, which may help with future searches.)

And you can use tags if you need the tie to be conditional:

%%%%
\version "2.19.83"

multipleVoiceConditionalTie = \fixed c' {
  << { g4 \tag #'tie a~ \tag #'noTie a } \\ { e2 } >>
}

multipleVoiceFollowingPhraseI = \fixed c' {
  << { a2 } \\ { d4 f } >>
}
multipleVoiceFollowingPhraseII = \fixed c' {
  << { a4 b } \\ { f2 } >>
}
multipleVoiceFollowingPhraseIII = \fixed c' {
  << { b2 } \\ { g2 } >>
}

{ \keepWithTag #'tie \multipleVoiceConditionalTie
  \multipleVoiceFollowingPhraseI
  \keepWithTag #'tie \multipleVoiceConditionalTie
  \multipleVoiceFollowingPhraseII
  \keepWithTag #'noTie \multipleVoiceConditionalTie
  \multipleVoiceFollowingPhraseIII }
%%%%


-- Aaron Hill



reply via email to

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