bell notificationshomepageloginNewPostedit profiledmBox

Hoots : LilyPond tie doesn't work as expecting with two voices I want to connect two b2., but the output connected the g. How to make this work? An explanation of this issue will be more grateful. version "2.18.2" { clef - freshhoot.com

10% popularity   0 Reactions

LilyPond tie doesn't work as expecting with two voices
I want to connect two b2., but the output connected the g. How to make this work?

An explanation of this issue will be more grateful.

version "2.18.2"

{
clef bass
time 3/4
<<
{ voiceOne <d g>4.( g8 fis e e4 b,2) }
{ voiceTwo b2.^~ b2. }
>>
}


Load Full (2)

Login to follow hoots

2 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

You are only using a single voice here, putting everything in parallel music (note how everything is put onto the same stem and how voiceTwo trumps voiceOne ?).

You need to either write << ... ... >> (in which case voiceOne and voiceTwo will be implicitly used in the two created voices and need not be specified) or << new Voice ... new Voice ... >>.

Note the in the middle of the first option: that is a game changer creating separate voices and giving them separate voice styles.


10% popularity   0 Reactions

Just to add to the answer already given:

The solution to automatically create two voices via is given by

version "2.18.2"

{
clef bass
time 3/4
<<
{ <d g>4.( g8 fis e e4 b,2) }

{ b2.^~ b2. }
>>
}

But this actually produces

The key point here is that, in such a multiple-voice construction, the first voice that you input, by default, will appear stems up (that is, it's treated as the upper voice). And since the <d g> is the lower voice, we want stems down. So a better option would be:

version "2.18.2"

{
clef bass
time 3/4
<<
{ b2.^~ b2. }

{ <d g>4.( g8 fis e e4 b,2) }
>>
}

which compiles


Back to top Use Dark theme