Hi Gianmaria, Interesting, for me running 2.19.80 the first example does not compile, either. Was there a recent change regarding post-event handling?
The problem is that the tie is not a separate expression that you could concatenate with other musical expressions like bla = { e'1 } foo = { ~ } bar = { e'2 } { \bla \foo \bar } (AFAIK with 2.19.x, not sure for more recent versions) Instead it is a post-event which is internally added to the 'articulations property of the NoteEvent to which the tie belongs. Compare: \version "2.19.80" foo = { e'1 ~ } bar = { e'1 } \displayMusic \foo \displayMusic \bar What are you trying to achieve? Your second example does not make much sense to me, because if you want to tie two equally long notes you would normally use chords for it I think: foo = { <c' e'>1 ~ q1 } { \foo } Of course you could do: foo = { <c' e'>1~ } bar = { <c' e'>1 } { \foo \bar } Have a nice day, Michael Am 13.11.2019 um 08:38 schrieb Gianmaria Lari:
The following code containing a tie between variables, compiles and works perfectly: \version "2.21.0" pa = {e'1} *{ \pa~\pa } * %here is the tie! Is there any way to do the same in case the variable contains two voices like in the following code? \version "2.21.0" pa = {<< {e'1}\\{c'1}>>} { \pa~ \pa } %this does not compile Thank you, g.