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