Ties, Slurs, and Voices Again!

2014-04-23 Thread Knute Snortum
I'm haven't problems with ties, slurs, and voices again, but the previous
answers don't seem to help.

I have a situation when I have basically two chords, except that the top
voice moves in a different rhythm from the other two.  Plus the inner voice
needs a slur and the lower voice needs a tie.  This is the closest I've
gotten:

\version "2.18.2"

\language "english"

{

 \time 5/4

 \key af \major

 4  

 <<

  { bf'8 ( [ ef'' ] c'' ) }

  \\

  {

  <<

   { g'4 ( af'8 ) }

   { ef'4 ~ ef'8 }

  >>

  }

 >>

 r8

}

If you render this, the inner slur and the lower tie are right next to each
other on the bottom.  I want the slur moved up so that it touches the heads
of the inner voice's notes.  Any ideas?

Knute Snortum
(via Gmail)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Ties, Slurs, and Voices Again!

2014-04-24 Thread Pierre Perol-Schneider
2014-04-24 0:53 GMT+02:00 Knute Snortum :


> I have a situation when I have basically two chords, except that the top
> voice moves in a different rhythm from the other two.  Plus the inner voice
> needs a slur and the lower voice needs a tie.  This is the closest I've
> gotten:
>

> \version "2.18.2"
>
> \language "english"
>
> {
>
>  \time 5/4
>
>  \key af \major
>
>  4  
>
>  <<
>
>   { bf'8 ( [ ef'' ] c'' ) }
>
>   \\
>
>   {
>
>   <<
>
>{ g'4 ( af'8 ) }
>
>{ ef'4 ~ ef'8 }
>
>   >>
>
>   }
>
>  >>
>
>  r8
>
> }
>
>
I'd first suggest to give LilyPond a chance to understand what you want to
achieve.
So I would redefine voices :



\version "2.18.2"

\language "english"

{

\time 5/4

\key af \major

4  

<<

{

\voiceOne

bf'8 ( [ ef'' ] c'' )

}

\\

{

\voiceThree

g'4 ( af'8 )

}

\\

{

\voiceTwo

ef'4 ~ ef'8

}

>>

r8

}

%%%


and plays with stem/ties/slur direction afterwards.


HTH

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


Re: Ties, Slurs, and Voices Again!

2014-04-24 Thread Knute Snortum
Pierre, is there a way to combine voice two and three on one stem?

Thomas, thanks, that works.  Did you come up with those numbers by trial
and error?


Knute Snortum
(via Gmail)


On Thu, Apr 24, 2014 at 2:10 AM, Thomas Morley wrote:

> 2014-04-24 0:53 GMT+02:00 Knute Snortum :
> > I'm haven't problems with ties, slurs, and voices again, but the previous
> > answers don't seem to help.
> >
> > I have a situation when I have basically two chords, except that the top
> > voice moves in a different rhythm from the other two.  Plus the inner
> voice
> > needs a slur and the lower voice needs a tie.  This is the closest I've
> > gotten:
> >
> > \version "2.18.2"
> >
> > \language "english"
> >
> > {
> >
> >  \time 5/4
> >
> >  \key af \major
> >
> >  4  
> >
> >  <<
> >
> >   { bf'8 ( [ ef'' ] c'' ) }
> >
> >   \\
> >
> >   {
> >
> >   <<
> >
> >{ g'4 ( af'8 ) }
> >
> >{ ef'4 ~ ef'8 }
> >
> >   >>
> >
> >   }
> >
> >  >>
> >
> >  r8
> >
> > }
> >
> >
> > If you render this, the inner slur and the lower tie are right next to
> each
> > other on the bottom.  I want the slur moved up so that it touches the
> heads
> > of the inner voice's notes.  Any ideas?
> >
> > Knute Snortum
> > (via Gmail)
>
> Hi Knute,
>
> you may want to try the \shape-command:
>
> \version "2.18.2"
>
> \language "english"
>
>  <<
>   { bf'8 ( [ ef'' ] c'' ) }
>   \\
>   {
>   <<
>\shape #'((1 . 1.8) (0.7 . 2.2) (-0.1 . 2.05) (-0.1 . 2.0)) Slur
>{ g'4( af'8 ) }
>{ ef'4 ~ ef'8 }
>   >>
>   }
>  >>
>
> HTH,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Ties, Slurs, and Voices Again!

2014-04-24 Thread Urs Liska

Am 24.04.2014 00:53, schrieb Knute Snortum:

I'm haven't problems with ties, slurs, and voices again, but the previous
answers don't seem to help.

I have a situation when I have basically two chords, except that the top
voice moves in a different rhythm from the other two.  Plus the inner voice
needs a slur and the lower voice needs a tie.  This is the closest I've
gotten:

\version "2.18.2"

\language "english"

{

  \time 5/4

  \key af \major

  4  

  <<

   { bf'8 ( [ ef'' ] c'' ) }

   \\

   {

   <<

{ g'4 ( af'8 ) }

{ ef'4 ~ ef'8 }

   >>

   }

  >>

  r8

}

If you render this, the inner slur and the lower tie are right next to each
other on the bottom.  I want the slur moved up so that it touches the heads
of the inner voice's notes.  Any ideas?


From coding style there is one issue with your example. With the 
polyphonic construct you use the first voice is implicitly assigned 
\voiceOne and the second \voiceTwo. And as you place a second parallel 
construct in the lower voice both have now \voiceTwo assigned - which 
can't really work.
And you don't need it in your case, as the lower voice actually isn't 
polyphonic but chords.
You can give a tie to individual notes of a chord by adding the tilde 
inside the chord construct to the note you want:


4 ( 8)

The result is the same as from your example. Which is clear as the music 
is \voiceTwo, which moves all curves downwards.


You can force the direction of an individual item by using direction 
operators "_" and "^". So


4^ ( 8)

will structurally give you what you want.
But now we're looking at a particularly ugly example of the problems 
LilyPond's  still has with slur formatting. So you will have to tweak 
that slur.


You can use the built-in \shape function or use the opportunity to get 
familiar with Janek WarchoĊ‚'s new \shapeII function that you can access 
when you "install" the openLilyLib snippets repo 
(https://github.com/openlilylib/snippets).


The following version will give you both options (just comment out 
accordingly). Of course you may want to fiddle around with the values.


\version "2.18.2"

\language "english"

% Uncomment the following line and the \shapeII line if you have 
openlilylib snippets

%\include "notation-snippets/shaping-bezier-curves/shapeII.ily"

{
  \time 5/4
  \key af \major
  4  
  <<
{ bf'8 ( [ ef'' ] c'' ) }
\\
{
  \shape #'((0.9 . -0.9) (0.7 . -1) (-0.7 . -1) (-0.85 . -0.85) ) Slur
  %\shapeII #'((head 0.75 0.5) (polar 45 0.4) (polar 45 0.4) (head 
0.85 0.25)) Slur

  4^( 8)
}
  >>
  r8
}

HTH
Urs

If you have downloaded the snippets repository you can compile the file
notation-snippets/shaping-bezier-curves/shapeII-example.ly to get an 
introduction to the powers of this function.




Knute Snortum
(via Gmail)



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



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


Re: Ties, Slurs, and Voices Again!

2014-04-24 Thread Thomas Morley
2014-04-24 0:53 GMT+02:00 Knute Snortum :
> I'm haven't problems with ties, slurs, and voices again, but the previous
> answers don't seem to help.
>
> I have a situation when I have basically two chords, except that the top
> voice moves in a different rhythm from the other two.  Plus the inner voice
> needs a slur and the lower voice needs a tie.  This is the closest I've
> gotten:
>
> \version "2.18.2"
>
> \language "english"
>
> {
>
>  \time 5/4
>
>  \key af \major
>
>  4  
>
>  <<
>
>   { bf'8 ( [ ef'' ] c'' ) }
>
>   \\
>
>   {
>
>   <<
>
>{ g'4 ( af'8 ) }
>
>{ ef'4 ~ ef'8 }
>
>   >>
>
>   }
>
>  >>
>
>  r8
>
> }
>
>
> If you render this, the inner slur and the lower tie are right next to each
> other on the bottom.  I want the slur moved up so that it touches the heads
> of the inner voice's notes.  Any ideas?
>
> Knute Snortum
> (via Gmail)

Hi Knute,

you may want to try the \shape-command:

\version "2.18.2"

\language "english"

 <<
  { bf'8 ( [ ef'' ] c'' ) }
  \\
  {
  <<
   \shape #'((1 . 1.8) (0.7 . 2.2) (-0.1 . 2.05) (-0.1 . 2.0)) Slur
   { g'4( af'8 ) }
   { ef'4 ~ ef'8 }
  >>
  }
 >>

HTH,
  Harm

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


Re: Ties, Slurs, and Voices Again!

2014-04-24 Thread tisimst
Knute,

I tried some of the more simple tweaks, but they didn't seem to give me what
you wanted. However, here's a *slightly* more advanced tweak that I got to
work:

\version "2.18.2"
\language "english"

{
  \time 5/4
  \key af \major
  4  
  <<
{ 
  bf'8 ( [ ef'' ] c'' ) 
}
\\
{
  <<
{ 
  \shape #'((0.9 . 1.8) (0.6 . 2.1) (0.3 . 2.1) (0 . 1.8)) Slur  %
<-- make the changes here
  g'4 ( af'8 ) 
}
   {
  ef'4 ~ ef'8 
}
  >>
}
  >>
  r8
}

The "\shape" procedure takes a scheme list of four (xi . yi) control point
pairs, which appear to be applied as offsets to what LilyPond comes up with
on its own. Thus, the first control point offset (0.9 . 1.8) shifts the
x-coordinate +0.9 staff-spaces and shifts the y-coordinate +1.8 staff-spaces
up (the default slur is actually the lowest line, if you didn't know that).
The other points follow the same philosophy, and don't forget the "Slur" at
the end of the line. 

I simply played with the numbers until it looked okay to me (sorry the image
quality isn't so good, but you get the idea):

<http://lilypond.1069038.n5.nabble.com/file/n161812/slur-example-fix.png> 

I didn't attempt to change the slur for the top voice, but that could use a
small adjustment on the right end, too. Give that a try!

-Abraham



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Ties-Slurs-and-Voices-Again-tp161804p161812.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Ties, Slurs, and Voices Again!

2014-04-25 Thread David Nalesnik
Hi,

On Thu, Apr 24, 2014 at 2:41 PM, tisimst  wrote:

> Knute,
>
> I tried some of the more simple tweaks, but they didn't seem to give me
> what
> you wanted. However, here's a *slightly* more advanced tweak that I got to
> work:
>
> \version "2.18.2"
> \language "english"
>
> {
>   \time 5/4
>   \key af \major
>   4  
>   <<
> {
>   bf'8 ( [ ef'' ] c'' )
> }
> \\
> {
>   <<
> {
>   \shape #'((0.9 . 1.8) (0.6 . 2.1) (0.3 . 2.1) (0 . 1.8)) Slur  %
> <-- make the changes here
>   g'4 ( af'8 )
> }
>

You can also use a tweak syntax for \shape.  Replace the { } block above
with

 {

  g'4-\shape #'((0.9 . 1.8) (0.6 . 2.1) (0.3 . 2.1) (0 . 1.8)) ( af'8 )

}


   {
>   ef'4 ~ ef'8
> }
>   >>
> }
>   >>
>   r8
> }
>
>
> The other points follow the same philosophy, and don't forget the "Slur" at
> the end of the line.
>

Easy to forget.  The tweak syntax is helpful here.

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


Re: Ties, Slurs, and Voices Again!

2014-04-25 Thread tisimst
David Nalesnik-2 wrote
> You can also use a tweak syntax for \shape.  Replace the { } block above
> with
> 
> {
>   g'4-\shape #'((0.9 . 1.8) (0.6 . 2.1) (0.3 . 2.1) (0 . 1.8)) ( af'8 )
> }
> alt="example of adjusting slur position with simultaneous other voices
> tie"
> Easy to forget.  The tweak syntax is helpful here.
> 
> HTH,
> David

Great suggestion, David. Following this, here's how I would tweak the above
snippet entirely (including the top slur):

\version "2.18.2"
\language "english"

{
  \time 5/4
  \key af \major
  4  
  <<
{
  bf'8-\shape #'((0 . 0) (0 . 0) (-0.25 . -0.25) (-0.5 . -0.5)) ( [ ef''
] c'' )
}
\\
{
  <<
{
  g'4-\shape #'((0.9 . 1.8) (0.6 . 2.1) (0.3 . 2.1) (0 . 1.8)) (
af'8 )
}
{
  ef'4 ~ ef'8
}
  >>
}
  >>
  r8
}

which gives you (better resolution this time):

<http://lilypond.1069038.n5.nabble.com/file/n161833/polyphonic-ties-and-slurs.png>
 

-Abraham



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Ties-Slurs-and-Voices-Again-tp161804p161833.html
Sent from the User mailing list archive at Nabble.com.

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