[Top][All Lists]

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

Re: Tie multiple voice music contained in variable

From: Michael Käppler
Subject: Re: Tie multiple voice music contained in variable
Date: Wed, 13 Nov 2019 09:59:19 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

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.

\version "2.19.80"

foo = {
  e'1 ~

bar = {

\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,

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.

reply via email to

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