Re: How to get ties between voices

2017-03-17 Thread Phil Holmes
- Original Message - 
From: "Gerard" 

To: 
Sent: Friday, March 17, 2017 12:51 PM
Subject: How to get ties between voices



Dear All,
maybe you can help solving this problem.
I've attached a code with two examples.

Example 1 is the desired output, except for the missing ties in the
right hand of the last quarter.
Example 2 is an alternative. Now the ties are correct, but the beams
between right and left hand are splitted.

The notation of the 32nd in Example 1 is the preferred notation by the
composer.
Is there a solution to get the missing ties?

Thanks for any comment.
Regards,
Gerard


A bit of a hack, but how about making your third voice as follows:

{ s4 s4 \override Tie.minimum-length = #3 \set tieWaitForNote = ##t 
\hideNotes a'32 [ e ~ c ~ a ~ ] \unHideNotes \stemDown 8 }


--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


How to get ties between voices

2017-03-17 Thread Gerard

Dear All,
maybe you can help solving this problem.
I've attached a code with two examples.

Example 1 is the desired output, except for the missing ties in the 
right hand of the last quarter.
Example 2 is an alternative. Now the ties are correct, but the beams 
between right and left hand are splitted.


The notation of the 32nd in Example 1 is the preferred notation by the 
composer.

Is there a solution to get the missing ties?

Thanks for any comment.
Regards,
Gerard
\version "2.18.2"

\paper {}
\layout {}


testStaff = <<

 \new PianoStaff \with {
\override VerticalAxisGroup.staff-staff-spacing =
  #'((basic-distance . 10)
 (padding . 5))
  }
  {

  <<
\time 3/4
\context Staff = "upper" {  % Right hand 
	\clef "treble"
	\key c \major
 \relative e''

	<<
	   
	{ e2^"Example 1" a,4}

\\

	{e'32 c a e \change Staff="lower" \stemUp {c a e c} \change Staff = "upper" \stemDown {a'' c a e} \change Staff = "lower" \stemUp {c a e c} \change Staff = "upper" \stemDown \set tieWaitForNote = ##t {a'' e ~ c ~ a ~} \change Staff = "lower" \stemUp \set tieWaitForNote = ##t {g ~ e ~ c~ }}
	
	\\
	
{ s4 s4 s8 \stemDown  }

	>>
	
	 \relative e'' 
	 
	<<
   
{ e2^"Example 2" a,4}

\\

	{e'32 c a e \change Staff="lower" \stemUp {c a e c} \change Staff = "upper" \stemDown {a'' c a e} \change Staff = "lower" \stemUp {c a e c} \change Staff = "upper" \stemDown \set tieWaitForNote = ##t {a'' e ~ c ~ a ~ 8} }
	
	\\
	
{\change Staff = "lower" \stemUp \set tieWaitForNote = ##t {s4 s4 s8 g,32 ~ e ~ c~  }}

	>>
	
   
  }
  
\context Staff = "lower" {  % Left hand 			
	\clef "bass"
	\key c \major
	
	s2. s2.
	
 }
  >>
}
>>

\book{
  \score { << \testStaff >>}
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user